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
1 year ago
413,389 views
0 shares
javascript-memes, type-coercion-memes, brendan-eich-memes, programming-quirks-memes, string-comparison-memes | ProgrammerHumor.io
More Like This
Look how they massacred it..
3 years ago
160.1K views
0 shares
It's all awful!
5 years ago
320.7K views
0 shares
Guess I will just die now
4 years ago
304.2K views
0 shares
Minimum skills required: PHP, C#, Scala, Ruby, JavaScript, Boostarap 4, CSS 5, Swift, Minimum 20 years experience. $10/hour
2 years ago
847.2K views
0 shares
The JVM came to them with a message...
4 years ago
136.2K views
0 shares
How To Get Fired In One Easy Step
1 year ago
381.5K views
0 shares
Loading more content...
AI
AWS
Agile
Algorithms
Android
Apple
Bash
C++