this post was submitted on 17 Jan 2025
805 points (94.2% liked)

Programmer Humor

32964 readers
96 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 2 points 3 days ago

Have fun with JS, everyones most consistent and beloved language.

https://jsisweird.com/

My favorite part is empty array truthiness. [] is falsy ( [] == true returns false ), but ![] is false. !![] is obviously true. (! is inversion as in all normal languages)