We are going to write a function called getCharCodes that will accept a string, s, as an argument.

The goal of the function is to return an array containing the ASCII codes of each character from our string input.

Example:

getCharCodes("I like JavaScript")

//output: [73,32,108,105,107,101,32,74,97,118,97,83,99,114,105,112,116]

#javascript

JavaScript Algorithm: Convert String Characters into ASCII
1.65 GEEK