Skip to content

Instantly share code, notes, and snippets.

@greg-hellings
Last active December 14, 2015 07:39
Show Gist options
  • Save greg-hellings/5052121 to your computer and use it in GitHub Desktop.
Save greg-hellings/5052121 to your computer and use it in GitHub Desktop.
function outter() {
var out = '';
function inner() {
if(typeof out === 'undefined') {
console.log('undef');
} else {
console.log('def');
}
var out = 3;
}
inner();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment