How to get the unicode of a character at the specified index of a string in JavaScript

1 Answer

0 votes
var s = "javascript java c++";

var code = s.charCodeAt(0); 

document.write(code);

/*

run:

106 

*/

 



answered Apr 10, 2017 by avibootz
edited Apr 10, 2017 by avibootz
...