I want a function that I can go from A to B, B to C, Z to A.
My function is currently like so:
function nextChar(c) {
return String.fromCharCode(c.charCodeAt(0) + 1);
}
nextChar('a');
It works for A to X, but when I use Z... it goes to [ instead of A.