Skip to content

Instantly share code, notes, and snippets.

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