function stringCodes(s) {
  let codes = [];
  for (let i = 0; i < s.length; i++) {
    codes.push(s.charCodeAt(i));
  }
  return codes;
}
@param {string} s The string
@return {!Array<number>} The UTF-16 codes of the characters of the string.