JS Quiz: Hard: Unicode Length Illusion

What does this code log?

const str = 'a\uD83D\uDE00b';
console.log(str.length, [...str].length);
  • 4 4
  • 4 3
  • 3 3
  • 5 4
0 voters