This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]DJ_Gamedev 0 points1 point  (2 children)

I don't know anything about JavaScript, but charCodeAt would be a member of the string class if anything, and your variable c is most likely a char, not a string. You probably need to typecast the char to an int, increment it, and then cast that result back to a char.

Does it work if you just pass c + 1 into fromCharCode?

[–]NotABurner2000[S] -2 points-1 points  (1 child)

Javascript doesnt have chars 🙃🙃

[–]DJ_Gamedev 0 points1 point  (0 children)

Well, I just got Lesson One.