How do I determine if variable is undefined or null?
undefined
null
My code is as follows:
var EmpN
The easiest way to check is:
if(!variable) { // If the variable is null or undefined then execution of code will enter here. }