Advertisement
Guest User

Untitled

a guest
Dec 19th, 2018
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var name=1;
  2. this.name=3;
  3. alert(name);//1
  4. alert(this.name);//3
  5.  
  6.  
  7. ///////////////////////
  8. this.bu=4;
  9. alert(bu); //4
  10.  
  11. /////////////////////////
  12.  
  13.  
  14. /*
  15. The purpose of this code is to test hoisting and global object games
  16.  
  17. a flow should run from 1 to alert in line 3.
  18. a flow should run from 3 to alert in line 4.
  19. a flow shoudl run from 4 to alert in line 9.
  20.  
  21. */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement