Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to convert char to number in js

// the first parameter is the index of the string to convert to an ascii code
"A".charCodeAt(0);
//output: 65
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #convert #char #number #js
ADD COMMENT
Topic
Name
8+9 =