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