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
3 months ago
155,839 views
0 shares

javascript-memes, type-coercion-memes, brendan-eich-memes, programming-quirks-memes, string-comparison-memes | ProgrammerHumor.io
More Like This
I think I use it too much
3 years ago
37.1K views
0 shares

Still Relevant Given The Latest Developments
1 year ago
61.2K views
0 shares

Backend is where I thrive
3 years ago
66.8K views
0 shares

I Was Told This Place Was About Programming Humors
3 months ago
191.6K views
0 shares

A front end developer eats alone because he doesn't know how to join tables
3 years ago
65.5K views
0 shares

Loading more content...