title: Function not calling itself... enough
body: <p>Each string in an array is a number, for example <code>array1 = ["1296", "12", "27"];</code></p>
  
  <p>For each string above, if possible to divide by 6 evenly without remainders, I want to do so at least once, then if the result is still longer than 2 characters, repeat. Then replace the string in the same position, such that the array would become <code>["36", "2", "27"];</code>   </p>
  
  <p>so far, my code partly works.</p>
  
  <pre><code>w=0;
  function divideBySix(){
              if ((array1[w] / 6) == (Math.floor(array1[w] / 6))) {
              var temp = array1[w] / 6;
              array1[w] = temp.toString();
              if (array1[w].length &lt; 3) {
                  w++;
              }
              divideBySix();
      }
  </code></pre>
  
  <p>The function successfully divides the first string by 6 once, and then calls itself again and again until the result is within 2 chars long. At that point, it should continue calling itself, and do the same to the next string of the array. But it doesn't do the next string. I don't know why it stops after finishing the first string. So the array looks like this <code>["36", "12", "27"];</code> Also, w successfully gets incremented. So I know its getting at least that far...</p>