this post was submitted on 14 Aug 2025
316 points (96.2% liked)

Programmer Humor

25773 readers
1610 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
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] shape_warrior_t@programming.dev 5 points 2 days ago (1 children)

a === b returns true if a and b have the same type and are considered equal, and false otherwise. If a is null and b is a boolean, it will simply return false.

[โ€“] ulterno@programming.dev -1 points 2 days ago

I see, so logically it is fine.
Just not in the context.