Created
September 16, 2019 00:42
-
-
Save djD-REK/677280b4f9d5307a493d74d58f9aeb5f 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
var variable = 37 | |
function myFunction () { | |
var variable = 40 | |
console.log(variable) // 40 | |
} | |
console.log(variable) // 37 | |
myFunction() | |
console.log(variable) // 37 | |
// Output: 37, 40, 37 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment