[Solved] Finding a faster way of checking characters in js [closed]


You can use the String.fromCharCode feature. For example:

let myChar="c";
let nextChar = String.fromCharCode(myChar.charCodeAt(0)+1);
console.log(nextChar) // 'd'

In your case, you would replace ‘c’ with your character variable.

0

solved Finding a faster way of checking characters in js [closed]