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
7 months ago
234,107 views
0 shares
javascript-memes, type-coercion-memes, brendan-eich-memes, programming-quirks-memes, string-comparison-memes | ProgrammerHumor.io
More Like This
The Programmer's Confidence Curve
8 months ago
276.3K views
0 shares
Looking for my first game development job, and seeing this line upsets me a bit
1 year ago
226.0K views
0 shares
Strange language, JS
2 years ago
125.3K views
0 shares
Perfection
1 year ago
69.5K views
0 shares
Imagine getting jumped by JavaScript developers
3 years ago
80.9K views
0 shares
[[][[]]+[]][+[]][++[+[]][+[]]] is "n" in javascript
4 years ago
122.8K views
0 shares
Loading more content...
AI
AWS
Agile
Algorithms
Android
Apple
Bash
C++
Csharp