Skip to content

Instantly share code, notes, and snippets.

@shaunwallace
Created November 19, 2014 11:58
Show Gist options
  • Save shaunwallace/1247679fb63a21de3007 to your computer and use it in GitHub Desktop.
Save shaunwallace/1247679fb63a21de3007 to your computer and use it in GitHub Desktop.
Simplifying Variable Uses
var foo = true;
var evalFoo = eval("'use strict'; var foo = false;");
assert( foo === true );
assert ( evalFoo === false );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment