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
5 months ago
181,152 views
0 shares
javascript-memes, type-coercion-memes, brendan-eich-memes, programming-quirks-memes, string-comparison-memes | ProgrammerHumor.io
More Like This
It’s a joke
2 years ago
81.8K views
0 shares
Another Smart Move
5 months ago
233.0K views
0 shares
Great Now We Have To Tip The Ai
1 year ago
68.7K views
0 shares
Type Shit
1 month ago
173.7K views
0 shares
Accepting Cookies: The Matrix Edition
6 months ago
211.0K views
0 shares
JavaScript is harmful for your brain [Proven]
2 years ago
140.3K views
0 shares
Loading more content...
AI
AWS
Agile
Algorithms
Android
Apple
Bash
C++
Csharp