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
382,109 views
0 shares
javascript-memes, type-coercion-memes, brendan-eich-memes, programming-quirks-memes, string-comparison-memes | ProgrammerHumor.io
More Like This
Chill Language
9 months ago
602.3K views
0 shares
The router UI isn't refreshing because it can't get jQuery from Google's CDN. You know, cos my Internet's down :)
4 years ago
349.8K views
0 shares
Front End Web Development in 2017
5 years ago
187.2K views
0 shares
Frontend Developer
2 years ago
116.8K views
0 shares
When You Find Out Why Some Users Can't Log In
9 months ago
377.1K views
0 shares
Loading more content...
AI
AWS
Agile
Algorithms
Android
Apple
Bash
C++