How do I determine if variable is undefined or null?
undefined
null
My code is as follows:
var EmpN
You can simply use the following (I know there are shorter ways to do this, but this may make it easier to visually observe, at least for others looking at the code).
if (x === null || x === undefined) { // Add your response code here, etc. }