๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
JavaScript/Vanilla JS

[๋ฐ”๋‹๋ผJS๋กœ ํฌ๋กฌ ์•ฑ ๋งŒ๋“ค๊ธฐ] Data Types on JS

by ์ฝ”๋”ฉํ•˜๋Š” ๋ถ•์–ด 2021. 2. 25.
๋ฐ˜์‘ํ˜•

[์ถœ์ฒ˜-์œ ํŠœ๋ธŒ ๋…ธ๋งˆ๋“œ ์ฝ”๋” Nomad Coders]

https://youtu.be/FlWWCNzJBfo

-๋ณ€์ˆ˜๋ฅผ ์„ ์–ธํ•  ๋•Œ๋Š” ๊ธฐ๋ณธ์œผ๋กœ const๋ฅผ ์“ฐ์ž. ํ•„์š”ํ• ๋•Œ๋งŒ let์„ ์‚ฌ์šฉํ•˜์ž

-" " ์•ˆ์— ๋“ค์–ด๊ฐ€๋ฉด ๋ฌธ์ž๋กœ ์ธ์‹๋œ๋‹ค (ex. "6666" ← ์—ฌ๊ธฐ์„œ 6666์€ ์ˆซ์ž๊ฐ€ ์•„๋‹ˆ๋ผ ๋ฌธ์ž)

-๊ตณ์ด ์•”๊ธฐํ•˜๋ ค๊ณ  ํ•˜์ง€ ์•Š์•„๋„ ๋œ๋‹ค. ๋‹ค๋ฅธ ๊ฒƒ๊ณผ ํ—ท๊ฐˆ๋ฆฌ์ง€๋งŒ ์•Š์œผ๋ฉด ๋œ๋‹ค

 

 

// String
const what = "Nicolas";

console.log(what);

 

 

const wat = true;

console.log(wat);

 

 

const wat = 666;

console.log(wat);

 

 

const wat = 55.1;

console.log(wat);

 

๋ฐ˜์‘ํ˜•

๋Œ“๊ธ€