Last active
September 16, 2019 00:56
-
-
Save djD-REK/df6af78416a86bdda3ecf2d25f72e2c7 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 var example | |
function myFunction() { | |
whoops = 3 | |
} | |
console.log(whoops) // undefined | |
myFunction() | |
console.log(whoops) // 3 | |
var whoops |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment