diff --git a/tests/test016.js b/tests/test016.js index 4dcc4f6..b293396 100644 --- a/tests/test016.js +++ b/tests/test016.js @@ -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