Difference between ‘null’ and ‘undefined’?
null !== undefined
If I say null is an object? Would you believe me? Watch below gif
null means empty and can be assigned and which means nothing.
No..no..no, what you are thinking is not like that ? undefined is not an object like null
undefined means a variable which was declared but not yet been assigned any value.
undefined is of type undefined
undefined is something which is not defined and is of undefined type
null is empty and having no value and is of object type