Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Leonid165y@PrivateGER no, because you do have an object, but it's not initialized with toiled paper)
-
@Leonid
You do know a null pointer points to random memory without any meaning, right? -
Leonid165y@PrivateGER null must be assigned: x=null;
while undefined means you have declared a variable but it's not defined.
So, null - you have toilet paper holder but you not put paper in it.
Undefined - you should have toilet paper holder in bathroom, but you don't -
Leonid165y@PrivateGER what do you mean? I'm C# developer, not JS, but here is article about it: https://codeburst.io/javascript-nul...
-
@Leonid Oh god, JS
Well, that explains something. I know what you mean now.
I was talking about C++, where null is literally just a pointer into nothing. It has nothing to do with objects there. -
W4R10CK1595yThis should be in every programming book and be shown in every university as well as being on the exams. No one would miss what null and undefined means.
-
A simpler explanation is highlighted here https://ajaymatharu.com/javascript-...
null vs undefined
joke/meme
null value
undefined variable
variables