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
2 months ago
123,012 views
0 shares

javascript-memes, type-coercion-memes, brendan-eich-memes, programming-quirks-memes, string-comparison-memes | ProgrammerHumor.io
More Like This
This Mug At My School
7 months ago
68.8K views
0 shares

Greenest programming languages: a reason to support JavaScript over TypeScript
2 years ago
90.9K views
0 shares

When Your Calculator Identifies As A Programmer
15 days ago
150.1K views
0 shares

Javascript
2 years ago
38.5K views
0 shares

Backend Developers Meeting CSS For The First Time
3 months ago
159.7K views
1 shares

Developer Tools (affiliate)
It took AI to code what we thought was impossible
2 years ago
29.8K views
0 shares

Loading more content...