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
2 months ago
162,448,532 views
0 shares
javascript-memes, type-coercion-memes, boolean-memes, strings-memes, weak-typing-memes | ProgrammerHumor.io
More Like This
The Programmer Dating Hierarchy
11 months ago
664.8K views
1 shares
Introducing the PORN Tech Stack (It's real!)
3 years ago
666.0K views
2 shares
The Cursed Js Box Model
1 year ago
153.1K views
0 shares
Which is worse?
3 years ago
131.5K views
0 shares
It's Always Safari
1 year ago
380.4K views
1 shares
BenQ MA270U 27” 4K 3840x2160 Monitor for MacBook® Pro/Air, Dual USB-C, 90W Power Delivery, Mac Color Match, USB Hub, Brightness & Volume Control on Mac, Height & Tilt Adjustable Stand, P3 Color Gamut
Affiliate
Monitors
BenQ
Npm Install: The Universal Hacking Accusation
1 year ago
349.4K views
1 shares
Loading more content...
AI
AWS
Agile
Algorithms
Android
Apple
Bash
C++