Advertisement
Guest User

Untitled

a guest
Mar 30th, 2017
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. var here = 'thisone'
  2.  
  3. function funfun(){
  4. var here = 'notthisone';
  5. console.log(this.here);
  6. }
  7.  
  8. var containingObject = {
  9. here: "here actually",
  10. };
  11.  
  12. funfun.call(containingObject);
  13. funfun.apply(containingObject);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement