Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //#1: Explain what will this statement output and why
- var x = null;
- var y;
- console.log(x===null, y==null);
- //#2
- var foo = {};
- console.log(foo.bar);
- console.log(typeof foo.bar);
- console.log(foo.noSuchProperty);
- console.log(typeof foo.noSuchProperty);
- //#3 where is "undefined" is defined?
- console.log(undefined in this);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement