title: Space separator INSTEAD of a comma - large number outputs
body: <p>You'll see in my <code>form</code> tag, I'm using <code>toLocaleString</code> to to put a separator in my final output. However I want a space instead of a comma. How can I achieve that?</p>
  <p>Right now, the third output has a comma in it. But ideally I want all three outputs to have a space in it to make large numbers more readable.</p>
  <p>Example: &quot;5 000&quot;, &quot;400 000&quot; etc.</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;form 
    oninput="loanval.value=loan.value; 
             periodval.value=period.value; 
             paymentval.value=Math.floor(loan.value / period.value).toLocaleString()"&gt;
    &lt;label&gt;Loan Amount&lt;/label&gt;
    &lt;input type="range" id="loan" name="loan" min="5000" max="400000" step="5000"&gt;
    &lt;output name="loanval" for="loan"&gt;0&lt;/output&gt;
    &lt;label&gt;Loan Period&lt;/label&gt;
    &lt;input type="range" id="period" name="period" min="1" max="15"&gt;
    &lt;output name="periodval" for="period"&gt;0&lt;/output&gt;
    &lt;label&gt;Your monthly repayment will be:&lt;/label&gt;
    &lt;output name="paymentval"&gt;0&lt;/output&gt;
  &lt;/form&gt;</code></pre>
  </div>
  </div>
  </p>