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
11 months ago
305,745 views
0 shares
javascript-memes, type-coercion-memes, brendan-eich-memes, programming-quirks-memes, string-comparison-memes | ProgrammerHumor.io
More Like This
Magic logs
3 years ago
103.4K views
0 shares
How Microsoft deals with bugs
3 years ago
142.9K views
0 shares
Absolutely Diabolical
5 months ago
419.9K views
0 shares
Rlearnprogramming In Anutshell
1 year ago
169.0K views
0 shares
Outsourcing Your TypeScript Migration To The Real Senior Engineer
6 months ago
373.7K views
0 shares
Fluke - 2718166 179/EDA2 6 Piece Industrial Electronics Multimeter Combo Kit
Affiliate
Developer Tools
Fluke
How To Build Ahorse With Programming
1 year ago
202.7K views
1 shares
Loading more content...
AI
AWS
Agile
Algorithms
Android
Apple
Bash
C++
Csharp