Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

get ascii value of char javascript

word = userInput[0]; //abc
var sum =0;
for(i=0;i<word.length;i++)
{
    sum = sum + word.charCodeAt(i);
}
console.log(sum); //294
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #ascii #char #javascript
ADD COMMENT
Topic
Name
5+7 =