const icons = '☃★♲'; console.log(icons.codePointAt(1)); // expected output: "9733"
JavaScript Demo: String.codePointAt()
Run ›
Reset