Skip to content

Instantly share code, notes, and snippets.

@fundon
Forked from JeffreyZhao/gist:1074390
Created July 10, 2011 10:04
Show Gist options
  • Save fundon/1074436 to your computer and use it in GitHub Desktop.
Save fundon/1074436 to your computer and use it in GitHub Desktop.
var number = 10;
var showNumber = function () {
alert(number);
}
(function () {
number = 20;
showNumber();
})()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment