Determine if variable is ‘undefined’ or ‘null’
In JavaScript, you can check whether a variable is undefined or null or blank or has a value defined in it. In JavaScript, ‘undefined’ means a variable has been declared but has not been assigned a value yet, such as: var a; console.log(a); //shows undefined console.log(typeof a); //shows undefined ‘null’ is an assignment value. This […]