-
-
Save WPDC/adab83cd790e3a44d9cc to your computer and use it in GitHub Desktop.
CS0110 3.9 - Scoping
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
pageName = 'FAQ' | |
isPageLoaded = displayPage( pageName ) | |
// pageName in the function is not the same | |
// as the pageName on line 2. | |
function displayPage( pageName ) { | |
isPageLoaded = false | |
... | |
return isPageLoaded | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment