How do I determine if variable is undefined or null?
undefined
null
My code is as follows:
var EmpN
(null == undefined) // true (null === undefined) // false
Because === checks for both the type and value. Type of both are different but value is the same.