Created
June 21, 2012 19:29
-
-
Save martinwells/2967965 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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