Last active
January 7, 2019 13:17
-
-
Save makoscafee/e1d261eccb01219fedb5fd6e7e617e2d 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
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