Answers for "ascii value of character in javascript"

0

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
Posted by: Guest on December-08-2020

Code answers related to "ascii value of character in javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language