Javascript has a special type named undefined. This means, someone defined the variable but didn't set the value yet. For example: var a; console.log(a); // undefined Do you think null == undefined is true? If you use == for comparing them, it's true. (false == false) but if you use === , then it says false. (undefined !== null) That means, they're basically different. Here's an example for unde..