Advertisement
STANAANDREY

getASCIIcodes

Feb 12th, 2021
761
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function getASCIIcodes(s) {
  2.     let arrCodes = [];
  3.     for (let i = 0; i < s.length; i++) {
  4.         arrCodes.push(s.charCodeAt(i));
  5.     }
  6.     return arrCodes;
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement