Answers for "a to z in js using while"

0

a to z in js using while

var first = "a", last = "z";
for(var i = first.charCodeAt(0); i <= last.charCodeAt(0); i++) {
	document.write( eval("String.fromCharCode(" + i + ")") + " " );
}
Posted by: Guest on December-31-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language