Strings In Depth16 / 18
Up next

Iterate code points

const s = "héllo";
// spreading a string yields whole Unicode code points
const chars = [...s];
console.log(chars, chars.length);
What you're solving

spread splits into characters