Skip to content

Instantly share code, notes, and snippets.

@JeffreyZhao
Created July 10, 2011 08:53
Show Gist options
  • Save JeffreyZhao/1074390 to your computer and use it in GitHub Desktop.
Save JeffreyZhao/1074390 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