Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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