Skip to content

Instantly share code, notes, and snippets.

@makoscafee
Last active January 7, 2019 13:17
Show Gist options
  • Save makoscafee/e1d261eccb01219fedb5fd6e7e617e2d to your computer and use it in GitHub Desktop.
Save makoscafee/e1d261eccb01219fedb5fd6e7e617e2d to your computer and use it in GitHub Desktop.
const globalVariable = 'just variable';
const outerFunction = () => {
const outerFunctionVariable = 'values';
const innerFunction = () => {
const innerFunctionVariable = 'new Value';
console.log(globalVariable); // just variable
console.log(innerFunctionVariable); // new Value
console.log(outerFunctionVariable); // values
};
return innerFunction();
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment