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
271,422 views
0 shares
javascript-memes, type-coercion-memes, brendan-eich-memes, programming-quirks-memes, string-comparison-memes | ProgrammerHumor.io
More Like This
The Irony Of Naming Conventions
11 months ago
284.4K views
0 shares
That’s a lot of data
3 years ago
106.3K views
0 shares
Overly attached router
4 years ago
125.3K views
0 shares
Progress so far!
4 years ago
124.2K views
0 shares
If I Had A Penny For Every Firefox-Specific Issue
8 months ago
350.8K views
1 shares
Mini PCs (affiliate)
Boolean Variables Be Like
1 year ago
354.2K views
0 shares
Loading more content...
AI
AWS
Agile
Algorithms
Android
Apple
Bash
C++
Csharp