Javascript String char code get
let myString = "The quick brown fox."; for (let i = 0; i < myString.length; i++) console.log( myString.charCodeAt(i) + "-"); console.log("");// w ww. j av a 2 s . com for (let i = 0; i < myString.length; i++) console.log( String.fromCharCode( myString.charCodeAt(i) ) + "-");