Skip to content

Instantly share code, notes, and snippets.

@jtwalters
Created February 12, 2015 05:41
Show Gist options
  • Save jtwalters/dcc877657881ba12727f to your computer and use it in GitHub Desktop.
Save jtwalters/dcc877657881ba12727f to your computer and use it in GitHub Desktop.
foo = false;
(function () {
foo = true;
})();
setTimeout(function () {
foo = false;
}, 0);
var foo = foo || 'bar';
console.log(foo);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment