1.Null vs Undefined.
Null is a special value meaning “no value”. null is a special object because type of null returns ‘object’.
On the other hand, undefined means that the variable has not been declared, or has not been given a value.
Null means an empty or non-existent value. Null…