title: Split Integer into 2 digits and put into array Javascript
body: <p>(Must read to understand exactly what I need)
  I  would like to create a program that takes a number is input, such as: 12345 and then splits this number into 2 digit numbers and store it in a array. The array must look like this: [0]=45 [1]=23 [2]=1 . This means that the splitting of the numbers must start from the last digit of the number and not the first.</p>
  
  <p>This is what I have until now:</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-js lang-js prettyprint-override"><code>var splitCount = []; // This is the array in which we store our split numbers
  //Getting api results via jQuery's GET request
  $.get("https://www.googleapis.com/youtube/v3/channels?part=statistics&amp;id=UCJwchuXd_UWNxW-Z1Cg-liw&amp;key=AIzaSyDUzfsMaYjn7dnGXy9ZEtQB_CuHyii4poc", function(result) {
      //result is our api answer and contains the recieved data
      //now we put the subscriber count into another variable (count); this is just for clarity
      count = result.items[0].statistics.subscriberCount;
      //While the subscriber count still has characters
      while (count.length) {
          splitCount.push(count.substr(0, 2)); //Push first two characters into the splitCount array from line 1
          count = count.substr(2); //Remove first two characters from the count string
      }       
      console.log(splitCount) //Output our splitCount array
  });</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"&gt;&lt;/script&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>but the problem with this is that if there are 5 digits for example: 12345 the the last digit will be in an array by itself like this: [0]=12 [1]=34 [2]=5 but I need the last array to have 2 digits and the first should be the one with one digit instead like this: [0]=1 [1]=23 [2]=45</p>