2 posts • Page 1 of 1
Null Vs. Undefined
- The concrete difference between them is that null is explicit, while undefined is implicit.
- You can change the value of undefined by undefined=true; but you cannot change the value or null. This means that, null is object type where as undefined is undefined type.
- While performing primitive operations, null is converted to zero (0) whereas undefined is converted to NaN.