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

Programmer Humor

37552 readers
906 users here now

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

Rules:

founded 6 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] DSTGU@sopuli.xyz 2 points 6 months 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)