Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var name=1;
- this.name=3;
- alert(name);//1
- alert(this.name);//3
- ///////////////////////
- this.bu=4;
- alert(bu); //4
- /////////////////////////
- /*
- The purpose of this code is to test hoisting and global object games
- a flow should run from 1 to alert in line 3.
- a flow should run from 3 to alert in line 4.
- a flow shoudl run from 4 to alert in line 9.
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement