Created
February 7, 2016 01:35
-
-
Save josescasanova/36f2c7dc17c06de7b9ba to your computer and use it in GitHub Desktop.
This file contains hidden or 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
var a = 2; | |
function foo() { | |
var a; // 'a' declaration is moved to top | |
return a; | |
a = 5; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment