I need to increment a string from.. let\'s say aaa to zzz and write every incrementation in the console (is incrementation even a word?). It would go s
aaa
zzz
Treat the string like it's a base 36 number.
Convert it to decimal, add 1, convert back to base 36, and replace any zeroes with the letter 'a':
var str= 'aaa', s= str; while(str!=='zzz') { str= ((parseInt(str, 36)+1).toString(36)).replace(/0/g,'a'); s+= ' '+str; } document.body.innerHTML= s;