Last active
August 29, 2015 14:02
-
-
Save mauricedb/5db91094f5852d9c080c to your computer and use it in GitHub Desktop.
X things every JavaScript developer should know: scoping - Wrong
This file contains 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 text = "Hello from script 1"; | |
setTimeout(function () { | |
console.log(text); | |
}, 1000); |
This file contains 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 text = "Hello from script 2"; | |
setTimeout(function () { | |
console.log(text); | |
}, 1000); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment