Last active
October 8, 2015 16:48
-
-
Save Craga89/3360337 to your computer and use it in GitHub Desktop.
var, commas and equals - the fix
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
function pollute() { | |
var foo = 'uhoh', | |
bar = foo; // bar is in local scope, no pollution! | |
} | |
pollute(); // Execute the pollution..? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment