jeff 👨💻@programming.dev to Programmer Humor@programming.devEnglish · 2 年前0 vs null vs undefined - explained with toilet paperi.stack.imgur.comimagemessage-square19fedilinkarrow-up1447arrow-down111
arrow-up1436arrow-down1image0 vs null vs undefined - explained with toilet paperi.stack.imgur.comjeff 👨💻@programming.dev to Programmer Humor@programming.devEnglish · 2 年前message-square19fedilink
minus-squareaidan@lemmy.worldlinkfedilinkEnglisharrow-up1·2 年前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
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