Created
November 21, 2019 23:44
-
-
Save bad6e/c2b665537a399192e8f54d646fa14029 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
function outer(){ | |
var variable1 = 'variable1' | |
const variable2 = 'variable2' | |
let variable3 = 'variable3' | |
function inner() { | |
console.log(variable1) | |
console.log(variable2) | |
console.log(variable3) | |
} | |
inner() | |
} | |
outer() | |
// returns | |
// variable1 | |
// variable2 | |
// variable3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment