To get the char code in Javascript you can use the following snippet.

Sample Javascript

"C".charCodeAt(0); // prints 67

2 thought on “How to get the char code in Javascript”

Leave a Reply