JavaScript's type coercion strikes again! In JS, when comparing strings with >
, it performs lexicographical comparison - meaning "Dog" > "Cat" evaluates to true
because 'D' comes after 'C' in the alphabet. The grumpy kitten represents Brendan Eich (JavaScript's creator) facepalming at his own language quirks. He unleashed these string comparison shenanigans on the world and now even cats are judging him for it. The feline uprising begins with alphabetical order!
Why Brendan Eich Created JavaScript's Quirky Comparisons
25 days ago
90,610 views
0 shares

javascript-memes, type-coercion-memes, brendan-eich-memes, programming-quirks-memes, string-comparison-memes | ProgrammerHumor.io
More Like This
All Backend Work Is Actually Frontend Work
2 months ago
119.9K views
0 shares

The truth is true
2 years ago
28.7K views
0 shares

Just Update Your Dependencies Bro
13 days ago
63.9K views
0 shares

Full Stack Back End In Disguise
2 months ago
136.8K views
0 shares

I unfortunately couldn't get the font thickness right. Good luck finding other mistakes!
1 year ago
26.5K views
0 shares

No, Css Isn'T A Programming Language
3 months ago
145.5K views
0 shares

Loading more content...