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