Skip to content

Instantly share code, notes, and snippets.

@kbk0125
Created November 19, 2017 02:34

Revisions

  1. kbk0125 created this gist Nov 19, 2017.
    10 changes: 10 additions & 0 deletions changeDrinkingLaw2.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    function unitedStates(){
    let drinkingAge = 21;
    }

    function passDrinkingLaw(){
    drinkingAge = 18;
    // this would throw an error
    }

    passDrinkingLaw();