Skip to content

Instantly share code, notes, and snippets.

@minglecm
Created February 4, 2014 06:49
Show Gist options
  • Save minglecm/8799163 to your computer and use it in GitHub Desktop.
Save minglecm/8799163 to your computer and use it in GitHub Desktop.
// 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