this post was submitted on 06 Jul 2023
548 points (97.6% liked)

Programmer Humor

19594 readers
585 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 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 2 points 1 year ago

No, at least for JS the picture for undefined should actually be for "not defined" which yes is different. Undefined would be an empty holder without the spool holder.

0 = a 0 value

null = a value that means no value

undefined = the variable doesn't point to a value

not defined = there is no variable or anything