Skip to content

Instantly share code, notes, and snippets.

@martinwells
Created June 21, 2012 19:29
Show Gist options
  • Save martinwells/2967965 to your computer and use it in GitHub Desktop.
Save martinwells/2967965 to your computer and use it in GitHub Desktop.
// var b = null; // commented out now
function test()
{
var str = 'A string I am';
b = str; // oops, no var keyword means this is a global
}
test();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment