title: Javascript Algorithm to get the excel-like column name
body: <p>Basically what I want to do is create list of characters with format like excel column name.</p>
  
  <p>for example :
  a,b,c,d,.....,z,aa,ab,ac,....,yz</p>
  
  <p>in php you can just looping it with this code:</p>
  
  <pre><code>for($char = "A"; $char &lt;= "Z"; $char++) 
  {
      echo $char . "\n";
  }
  </code></pre>
  
  <p>but when I try it in javascript :</p>
  
  <pre><code> var i3;
   var text3 = "";
  
  for(i3 = "A"; i3 &lt;= "Z"; i3++)
  {
      text3 += i3 + ", ";
  }
  
  document.getElementById("pId").innerHTML = text3;
  </code></pre>
  
  <p>It doesn't work for me. Are there some errors in my code? Or that PHP logic doesn't work in JS? If you know how to make one please tell me, thanks.</p>