title: How to add spaces between numbers with JavaScript?
body: <p>With an input like <code>123456789</code>, how can I convert it into a format like <code>123 456 789</code> with JavaScript?</p>
  <p><code>split(&quot;&quot;).join(&quot; &quot;);</code> returns <code>1 2 3 4 5 6 7 8 9</code>.</p>