Created
February 9, 2014 18:05
-
-
Save getify/8903246 to your computer and use it in GitHub Desktop.
function declarations in blocks?
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
"use strict"; | |
foo(); // "b" | |
var a = true; | |
if (a) { | |
function foo() { console.log("a"); } | |
} | |
else { | |
function foo() { console.log("b"); } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment