Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



and the gist of the problem is that it doesn't.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: