jeff 👨💻 to Programmer [email protected]English • 2 years ago0 vs null vs undefined - explained with toilet paperi.stack.imgur.comimagemessage-square23fedilinkarrow-up1468arrow-down114
arrow-up1454arrow-down1image0 vs null vs undefined - explained with toilet paperi.stack.imgur.comjeff 👨💻 to Programmer [email protected]English • 2 years agomessage-square23fedilink
minus-square@aidanlinkEnglish2•2 years agoNo, 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