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/5d8e07f66b23bdefd504f88349138b38 to your computer and use it in GitHub Desktop.

Select an option

Save ysm-dev/5d8e07f66b23bdefd504f88349138b38 to your computer and use it in GitHub Desktop.
Markdium-๐Ÿ’ป ํ”„๋ก ํŠธ์—”๋“œ ๋ฉด์ ‘ ์งˆ๋ฌธ - JS #4
function foo() {
// ํ•จ์ˆ˜ ๋‚ด์—์„œ ๋ชจ๋“  ๋ณ€์ˆ˜์— ์ ‘๊ทผํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
var bar = 'bar'
let baz = 'baz'
const qux = 'qux'
console.log(bar) // "bar"
console.log(baz) // "baz"
console.log(qux) // "qux"
}
console.log(bar) // ReferenceError: bar is not defined
console.log(baz) // ReferenceError: baz is not defined
console.log(qux) // ReferenceError: qux is not defined
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment