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
8 months ago
250,971 views
0 shares
javascript-memes, type-coercion-memes, brendan-eich-memes, programming-quirks-memes, string-comparison-memes | ProgrammerHumor.io
More Like This
Harsh Reality
1 year ago
96.1K views
0 shares
Too relatable that it made me cry
1 year ago
161.3K views
0 shares
Djikstra's algorithm
4 years ago
165.5K views
0 shares
front end designers at youtube plz bring the old video quality selector back
3 years ago
108.8K views
0 shares
I Need You
12 months ago
175.2K views
1 shares
Just another day on StackOverflow
4 years ago
202.2K views
0 shares
Loading more content...
AI
AWS
Agile
Algorithms
Android
Apple
Bash
C++
Csharp