JavaScript really said "booleans? never heard of her" and decided that "on" and "off" are perfectly valid boolean values. Because why use true or false like a normal language when you can just... use strings? The document.designMode property is the perfect example of JS's commitment to making type safety engineers cry themselves to sleep. Other languages have strict typing and sensible boolean values. JavaScript has vibes and string literals pretending to be booleans. This is fine.
Everything Is A String
3 months ago
162,471,448 views
0 shares
javascript-memes, type-coercion-memes, boolean-memes, strings-memes, weak-typing-memes | ProgrammerHumor.io
More Like This
There Is Arecursion Under My Bed
1 year ago
466.8K views
0 shares
I just know what words to Google
5 years ago
283.9K views
0 shares
Just another lame recursion meme.
3 years ago
200.4K views
0 shares
Garbage Is Garbage
8 months ago
665.2K views
0 shares
Programmer Barbie
5 years ago
290.9K views
0 shares
Loading more content...
AI
AWS
Agile
Algorithms
Android
Apple
Bash
C++