this post was submitted on 25 Sep 2025
1092 points (99.2% liked)
Programmer Humor
26611 readers
1674 users here now
Welcome to Programmer Humor!
This is a place where you can post jokes, memes, humor, etc. related to programming!
For sharing awful code theres also Programming Horror.
Rules
- Keep content in english
- No advertisements
- Posts must be related to programming or programmer topics
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Simple javscript casting, if the string contains at least one char, it means yes ; else it means no.
The char: "0"
I think javscrpit caste the strings "0" and "false" to true, yes...