Last active
November 22, 2019 18:45
-
-
Save bad6e/73eee2582653f6a5f319ddd493d0feb6 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 whatIsDisneyLand() { | |
// Functionally Scoped Variables | |
var themeParkLocation = "Disneyland is Happiest Place on Earth" | |
let question = "Have you been?" | |
const response = "Too Many Times" | |
console.log(`${themeParkLocation} ${question} ${response}`) | |
} | |
whatIsDisneyLand() | |
// returns | |
// Disneyland is Happiest Place on Earth Have you been? Too Many Times | |
console.log(`${themeParkLocation} ${question} ${response}`) | |
// returns | |
//VM330:1 Uncaught ReferenceError: themeParkLocation is not defined | |
// at <anonymous>:1:16 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment