Increment Alphabet in JavaScript
<p>I want to show alphabet like this in Javascript;</p>

<p>A,B,C,D....ZX,ZY,ZZ</p>

<p>I tried like this;</p>

<pre><code>var cols[A, B, C, D...Z];

cols.join(',');

for (var i = cols[0]; i &lt; cols.length; i++) {
    for(var j = cols[0]; j &lt; cols.length; j++) {
        var k = 'i' + 'j';
    }
}

document.write(&lt;span&gt; + cols.join + &lt;/span&gt;);
</code></pre>

<p>Could you tell me how to write source code?</p>