Created
September 16, 2019 00:54
-
-
Save djD-REK/984201544617532b99ce582c44a91e6e 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) // ReferenceError: whoops is not defined | |
myFunction() | |
console.log(whoops) // 3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment