Created
December 13, 2019 11:15
-
-
Save paschalidi/61d5065b15b33e741fdec3b22c68faff to your computer and use it in GitHub Desktop.
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
function foo() { | |
// All variables are accessible within functions. | |
var bar = 'bar'; | |
let baz = 'baz'; | |
const qux = 'qux'; | |
console.log(bar); | |
console.log(baz); | |
console.log(qux); | |
} | |
console.log(bar); | |
console.log(baz); | |
console.log(qux); |
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
if (true) { | |
var bar = 'bar'; | |
let baz = 'baz'; | |
const qux = 'qux'; | |
} | |
console.log(bar); | |
console.log(baz); | |
console.log(qux); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment