Created
March 14, 2021 19:46
-
-
Save reireynoso/9a1a231759657745b02e61a317a299c1 to your computer and use it in GitHub Desktop.
Closure example 3
This file contains hidden or 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
let firstNumber = 200; | |
function getThatNumber(){ | |
let firstNumber = 500; | |
function findNum(){ | |
console.log('This is your number: ' + firstNumber) | |
} | |
findNum() | |
} | |
getThatNumber() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment