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
2 days ago
77,792 views
0 shares

javascript-memes, type-coercion-memes, brendan-eich-memes, programming-quirks-memes, string-comparison-memes | ProgrammerHumor.io
More Like This
Very descriptive definition
1 year ago
24.9K views
0 shares

Experienced JavaScript Developer Meme
1 year ago
22.7K views
0 shares

Thats Right The Square Hole
3 months ago
22.1K views
0 shares

"Forgive me" is quite a common comment in GitHub projects.
3 years ago
56.7K views
0 shares

Who Needs For Loops? Oh Wait, I Do
10 days ago
65.6K views
0 shares

Sounds A Bit Simple
20 days ago
86.5K views
0 shares

Loading more content...