Advertisement
Guest User

Untitled

a guest
Feb 9th, 2016
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. "use strict"
  2.  
  3. var foo = 0;
  4. console.log(foo);
  5.  
  6. var myFunc = function() {
  7. var foo = 1;
  8. console.log(foo);
  9.  
  10. var myNestedFunc = function() {
  11. var foo = 2;
  12. console.log(foo);
  13. }();
  14.  
  15. var myNestedFunc2 = function() {
  16. console.log(foo);
  17. }();
  18. }();
  19.  
  20. eval('var foo = 3; console.log(foo);');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement