Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js string to charcode array

let input = "words".split("");
let output = [];
input.forEach(letter => {
	output.push(letter.charCodeAt(0))
});
console.log(output) //[119, 111, 114, 100, 115]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #js #string #charcode #array
ADD COMMENT
Topic
Name
9+6 =