Null: Think of this as another way of writing "not applicable."
i think that's a little inaccurate. or it can be. null as a concept and an implemented feature of the language can be such a pain in the ass. that said i mdn's definition is a pretty decent ideal to try to live up to:
The value null represents the intentional absence of any object value. It is one of JavaScript's primitive values.
so, in an ideal world we should trust and believe that null is intentional and there's no value there to work with. so we should be thinking of it as more "yes that variable/property exists, but there's no value here".
That's really nice. I very much had subconsciously made my own assumptions of null without even realizing that it was a bit off. Thank you so much. I went ahead and made the edit to null on the post as a result. Thanks again.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
i think that's a little inaccurate. or it can be.
null
as a concept and an implemented feature of the language can be such a pain in the ass. that said i mdn's definition is a pretty decent ideal to try to live up to:so, in an ideal world we should trust and believe that null is intentional and there's no value there to work with. so we should be thinking of it as more "yes that variable/property exists, but there's no value here".
That's really nice. I very much had subconsciously made my own assumptions of null without even realizing that it was a bit off. Thank you so much. I went ahead and made the edit to null on the post as a result. Thanks again.