fix little mistake

master
armin@diedering.de 13 years ago
parent 24c7399ccb
commit 1a2eb0333e

@ -3,7 +3,7 @@ var testUndefined; // variable declared but not defined, set to value of
var testObj = {};
result = 1;
if ((""+test) != "undefined") result = 0; // test variable exists but value not defined, displays undefined
if ((""+testUndefined) != "undefined") result = 0; // test variable exists but value not defined, displays undefined
if ((""+testObj.myProp) != "undefined") result = 0; // testObj exists, property does not, displays undefined
if (!(undefined == null)) result = 0; // unenforced type during check, displays true
if (undefined === null) result = 0;// enforce type during check, displays false

Loading…
Cancel
Save