Skip to content

Instantly share code, notes, and snippets.

@pvamshi
Created May 3, 2015 17:27
Show Gist options
  • Save pvamshi/bef474e1799ad1f0e31c to your computer and use it in GitHub Desktop.
Save pvamshi/bef474e1799ad1f0e31c to your computer and use it in GitHub Desktop.
Scope -2
var a = 5;
function abc(){
var b = 6;
function def(){
console.log(b);
console.log(a);
}
def();
}
abc();
//console.log(a);
//console.log(b);
//def();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment