Skip to content

Instantly share code, notes, and snippets.

@ysm-dev
Created August 3, 2019 15:20
Show Gist options
  • Select an option

  • Save ysm-dev/f786510fd174dcb821b6c04b4c2629a6 to your computer and use it in GitHub Desktop.

Select an option

Save ysm-dev/f786510fd174dcb821b6c04b4c2629a6 to your computer and use it in GitHub Desktop.
Markdium-๐Ÿ’ป ํ”„๋ก ํŠธ์—”๋“œ ๋ฉด์ ‘ ์งˆ๋ฌธ - JS #4
console.log(foo) // undefined
var foo = 'foo'
console.log(baz); // ReferenceError: can't access lexical declaration 'baz' before initialization
let baz = 'baz';
console.log(bar); // ReferenceError: can't access lexical declaration 'bar' before initialization
const bar = 'bar'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment