+ 1
charCodeAt() Works on a string and you pass in the zero based index of the char in the string to get that char then it returns the HTML Unicode value of that char. var str = "Test string"; var unicode = str.charCodeAt(7); // 'r' &#114 unicode = 114 https://www.w3schools.com/jsref/jsref_charcodeat.asp
24th Jun 2017, 3:56 AM
ChaoticDawg
ChaoticDawg - avatar