Skip to content

Instantly share code, notes, and snippets.

@jasminegmp
Last active January 23, 2021 14:14
Show Gist options
  • Save jasminegmp/77c65ad96de623b805d90b385dee6f18 to your computer and use it in GitHub Desktop.
Save jasminegmp/77c65ad96de623b805d90b385dee6f18 to your computer and use it in GitHub Desktop.
function myFunction(){
var localFunction = 'I see local';
console.log(localFunction);
}
myFunction(); // outputs 'I see functional scope'
console.log(localFunction); // Outputs an error 'localFunction is not defined'
@yoavbls
Copy link

yoavbls commented Jan 23, 2021

The output needs to be 'I see local' instead of 'I see functional scope'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment