๋ฐ์ํ
[์ถ์ฒ-์ ํ๋ธ ๋ ธ๋ง๋ ์ฝ๋ Nomad Coders]
-๋จผ์ ๋ณ์๋ฅผ ์์ฑํ๊ณ , ์ด๊ธฐํํ๊ณ ์ฌ์ฉํ๋ฉด ๋๋ค
-Create - Initialize - Use
-๋ณ์๋ฅผ ์ด๊ธฐํํ๊ธฐ ์ ์ 'let'์ ๋ฃ์ด์ผ ํจ (ex. let a = 221;)
-์ด๋ฏธ ์์ฑ๋ ๊ฒ์ ์ฌ์ฉํ ๋๋ ๋จ์ง ์ฐธ์กฐ๋ง ํ๋ฉด ๋๋ค
-๋ณ์๋ ๊ฐ๋ณ์ ์ด๊ธฐ ๋๋ฌธ์ ๋ณํ ์ ์๋ค
let a = 221;
let b = a - 5;
a = 4;
console.log(b, a);
๋ฐ์ํ
'JavaScript > Vanilla JS' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[๋ฐ๋๋ผJS๋ก ํฌ๋กฌ ์ฑ ๋ง๋ค๊ธฐ] Data Types on JS (0) | 2021.02.25 |
---|---|
[๋ฐ๋๋ผJS๋ก ํฌ๋กฌ ์ฑ ๋ง๋ค๊ธฐ] let, const, var (0) | 2021.02.25 |
[๋ฐ๋๋ผJS๋ก ํฌ๋กฌ ์ฑ ๋ง๋ค๊ธฐ] Hello World with Javascript (0) | 2021.02.25 |
[๋ฐ๋๋ผJS๋ก ํฌ๋กฌ ์ฑ ๋ง๋ค๊ธฐ] VanillaJS (0) | 2021.02.24 |
[๋ฐ๋๋ผJS๋ก ํฌ๋กฌ ์ฑ ๋ง๋ค๊ธฐ] ES5, ES6 ES....WTF!?!?! (0) | 2021.02.23 |
๋๊ธ