Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

alphabet to number javascript

str = 'z'
n = (str == str.toLowerCase()) ? 96 : 64
result = str.charCodeAt(0) - n
console.log(result);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #alphabet #number #javascript
ADD COMMENT
Topic
Name
4+1 =