Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
function unitedStates(){
let drinkingAge = 21;
function mexico(){
let drinkingAge = 18;
console.log(drinkingAge) //18
//error, drinkingAge is not defined
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment