undefined. Although we understand both of them, it becomes difficult to answer this particular question. So in today’s post let’s understand the difference between
undefined, as its verbal meaning says, is not defined. For example, If you are declaring a variable
a and you are not passing any value to it. This means its value is not defined and so the variable
a will get value
So though null and undefined are almost the same, they have these differences in their types. While doing equality comparison in both, as both are falsy values == will give you a result true, but as both have different types, === will give you the result as false.
That’s all about Null and undefined.