if (typeof myVar !== "undefined") { console.log("myVar is DEFINED"); }
if (myVar != undefined){ console.log("Defined") } if (myVar != "undefined"){ console.log("Defined") }
if(typeof myVar !== "undefined")