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