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
372,555 views
0 shares
javascript-memes, type-coercion-memes, brendan-eich-memes, programming-quirks-memes, string-comparison-memes | ProgrammerHumor.io
More Like This
Somebody Please Fix This
1 year ago
324.6K views
0 shares
Dont know if this has been posted here.
3 years ago
247.0K views
0 shares
I Understand You Fellow Discord Dev
2 years ago
158.4K views
0 shares
Can Someone Comfirm
1 year ago
281.7K views
0 shares
google my saviour
4 years ago
235.0K views
0 shares
Watch How I Love To Declare Every Interface
1 year ago
351.8K views
0 shares
Loading more content...
AI
AWS
Agile
Algorithms
Android
Apple
Bash
C++