Advertisement
Guest User

Untitled

a guest
Aug 27th, 2016
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. //#1: Explain what will this statement output and why
  2. var x = null;
  3. var y;
  4.  
  5. console.log(x===null, y==null);
  6.  
  7. //#2
  8. var foo = {};
  9.  
  10. console.log(foo.bar);
  11. console.log(typeof foo.bar);
  12.  
  13. console.log(foo.noSuchProperty);
  14. console.log(typeof foo.noSuchProperty);
  15.  
  16. //#3 where is "undefined" is defined?
  17. console.log(undefined in this);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement