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