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
9 months ago
262,718 views
0 shares
javascript-memes, type-coercion-memes, brendan-eich-memes, programming-quirks-memes, string-comparison-memes | ProgrammerHumor.io
More Like This
Best Part Of The Interview
1 year ago
79.3K views
0 shares
Lore Accurate Junior Dev
11 months ago
206.3K views
0 shares
JavaScript: Hell's Original Source Code
5 months ago
258.7K views
0 shares
Udemy Tutorials Supremacy
11 months ago
249.5K views
0 shares
The Good Ol' Days Of Instant Expertise
8 months ago
230.9K views
1 shares
To Own The Libs: A Corporate Tragedy
10 months ago
192.9K views
1 shares
Loading more content...
AI
AWS
Agile
Algorithms
Android
Apple
Bash
C++
Csharp