Hint
[...str] splits a string into characters correctly, even for multi-byte Unicode (unlike split("")).
const str = 'hello';
const chars = [...str];
console.log(chars.length);
console.log(chars.reverse().join(''));5 olleh
Explanation: Strings are iterable — spread gives an array of characters. reverse() and join() produce the reversed string.
Key Insight: [...str] splits a string into characters correctly, even for multi-byte Unicode (unlike split("")).