๐ก ํ ๋ฒ ์ ์ธ๋ ์์์ ์๋ฃ๋ ๋ณ๊ฒฝํ ์ ์๋ค. ๋ง์ฝ ๊ฐ์ ๋ณ๊ฒฝํ์ ์ ์ค๋ฅ ๋ฐ์
> const name = "name์ด๋ผ๋ ์ด๋ฆ์ ์์๋ฅผ ์ ์ธํด๋ณผ๊ฒ์."
undefined
> name = "๊ทธ ๊ฐ์ ๋ณ๊ฒฝํด๋ณผ๊ฒ์."
TypeError: Assignment to constant variable.
ํด๊ฒฐ ๋ฐฉ๋ฒ
- ์์๊ฐ ์๋๋ผ ๋ณ์๋ฅผ ์ฌ์ฉํด์ผ ํ๋ค.
'Programming Language > JavaScript' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[JavaScript] Bind()์ด๋? (0) | 2024.10.16 |
---|---|
[JavaScript] Identifier has already been declared (0) | 2024.06.12 |
[JavaScript] Missing initializer in const declaration (0) | 2024.06.12 |
[JavaScript] Identifier has already declared (0) | 2024.06.12 |
[JavaScript] Uncaught SyntaxError: Unexpectedidentifier (0) | 2024.06.12 |