How do I determine if variable is undefined or null?
undefined
null
My code is as follows:
var EmpN
Best way:
if(typeof variable==='undefined' || variable===null) { /* do your stuff */ }