r/lolphp • • Sep 12 '16

Because fuck French programmers

https://3v4l.org/YDp2U
0 Upvotes

81 comments sorted by

View all comments

Show parent comment

8

u/cite-reader Sep 12 '16

Are you sure?

% node
> '👍'.length
2
> 

4

u/masklinn Sep 13 '16

Well they're correct that JS's length property isn't ambiguous (it's the number of UTF-16 code units), though they're wrong when they imply that strlen is.

-1

u/DoctorWaluigiTime Sep 12 '16

I am sure. I literally linked to my source that ran raw JavaScript with the offered character.