title: JavaScript variable split into groups
body: <p>have a <code>var id = "123456789";</code></p>
  
  <p>how to split in into groups after each 3 digits?? </p>
  
  <p>result must be like this: </p>
  
  <pre><code>var no1 = 123;
  var no2 = 456;
  var no3 = 789;
  </code></pre>
  
  <p>if the id will be longer 12, 15 or more digits, should work the same!</p>