Created
May 10, 2014 22:06
-
-
Save christianbundy/0828eb7114383ee3dd9c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Gaslighting With Javascript | |
(function () { | |
var obj = { | |
fn : function () {} | |
, num: 1 | |
, obj: {} | |
, str: 'Hello, world!' | |
}; | |
console.log(typeof obj.fn), // undefined | |
console.log(typeof obj.num); // undefined | |
console.log(typeof obj.obj); // undefined | |
console.log(typeof obj.str); // undefined | |
console.log(typeof obj); // undefined | |
return obj; | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Haha, it's confusing a little bit ))
There is invisible (inside of console.log) character: "< 200c >" // withoyt white spaces ))
console.log(typeof ob< 200c >j);