Skip to content

Instantly share code, notes, and snippets.

@emkay
Created November 14, 2011 03:44
Show Gist options
  • Select an option

  • Save emkay/1363187 to your computer and use it in GitHub Desktop.

Select an option

Save emkay/1363187 to your computer and use it in GitHub Desktop.
Function Scope
var a = 100,
b = 0;
function change() {
var b = a + 5;
}
change();
alert(b);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment