Created
February 4, 2014 06:49
-
-
Save minglecm/8799163 to your computer and use it in GitHub Desktop.
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
// Nice question for JS candidates.. | |
// When executed, what will be output to the console? | |
var text = 'outside'; | |
function logIt(){ | |
console.log(text); | |
var text = 'inside'; | |
}; | |
logIt(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment