Created
September 21, 2019 06:16
-
-
Save hustKiwi/2e1596f8c67a37139172ef871bda5d72 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 foo = 'Foo'; | |
let bar = 'Bar'; | |
bar = 'Bar2'; | |
console.log(foo, bar); | |
{ | |
let baz = 'Bazz'; | |
console.log(baz); | |
} | |
console.log(baz); // ReferenceError: baz is not defined | |
const qux = 'a value'; | |
qux = 'another value'; // TypeError: Assignment to constant variable |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment