Created
February 27, 2018 18:02
-
-
Save jaamaalxyz/2ef2579d9e69bddaacb0e5eecb685812 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
// Global scope | |
var num = 5; | |
function globalVar() { | |
console.log(num); // num = 5 | |
num = 8; | |
console.log(num); // num = 8 | |
} | |
console.log(num); // num = 5 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment