1067
Product ownership 101 (eviltoast.org)

Only valid in PHP?

you are viewing a single comment's thread
view the rest of the comments
[-] peacepath@lemmy.world 5 points 3 days ago

Simple javscript casting, if the string contains at least one char, it means yes ; else it means no.

[-] Valmond@lemmy.world 3 points 3 days ago
[-] peacepath@lemmy.world 3 points 3 days ago

I think javscrpit caste the strings "0" and "false" to true, yes...

this post was submitted on 25 Sep 2025
1067 points (99.1% liked)

Programmer Humor

26613 readers
3907 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

founded 2 years ago
MODERATORS