3 ms·
I was 100% prepared to believe that the length of empty string in js is 7. Then upon opening the post I was 100% ready to believe that js has three different s
by jlebar 3y ago
I was 100% prepared to believe that the length of empty string in js is 7.
Then upon opening the post I was 100% ready to believe that js has three different string length functions that all handle Unicode differently.
- baq 3y agoand the gist of the problem is that it doesn't.