Last active
April 9, 2020 04:55
-
-
Save lenoraporter/18ade82c5987341b7b0a2a2f401ef33a to your computer and use it in GitHub Desktop.
Global vs Functional Scope
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
var beyonce = "Hi, I'm Beyonce!"; // Globally Scoped | |
function onStage() { | |
beyonce = “I am... Sasha Fierce”; | |
var jayZ = "I am out of breath!"; // Functionally Scoped | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment