const icons = '☃★♲';

console.log(icons.codePointAt(1));
// Expected output: "9733"