4 ms·
Python does return 5. JavaScript returns 7. Python is returning the number of code points, JavaScript is returning the number of UTF-16 code units.
by hgs3 3y ago
Python does return 5. JavaScript returns 7. Python is returning the number of code points, JavaScript is returning the number of UTF-16 code units.
- arcticbull 3y agoThere's my mistake. Thank you. Flipped them in my head, it's ben a long day.