Created
November 19, 2017 01:06
-
-
Save kbk0125/2fbeab2e93d6e21f165a818a8f412828 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 unitedStates(){ | |
let drinkingAge = 21; | |
} | |
function mexico(){ | |
let drinkingAge = 18; | |
console.log(drinkingAge) //18 | |
} | |
console.log(drinkingAge) | |
//error, drinkingAge is not defined |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment