#1 Introduction
Last updated
Last updated
// 1.
[1, 2, 3, 4] + false // '1,2,3,4false' => ?????
// 2.
function divide(a, b){
return a / b
}
divide(2, 3) // 0.6666...666
divide("xxxxx") // NaN => ??? 2๊ฐ์ ์ธ์๋ฅผ ๋ณด๋ด์ผํ๋๋ฐ๋ error๊ฐ ์๋
// 2๊ฐ์ ์ธ์๋ ์ซ์ ํ์
์ด์ด์ผํ์ง๋ง ๋ฌธ์์ด์ด ํฌํจ๋๋ error๊ฐ ์๋const nico = { name: "nico" }
nico.hello() // error => but ์คํ ํ ํ์ธํ์๋ฌ์. ์คํ๋๊ธฐ ์ ์ ์๋ ค์ฃผ๋๊ฒ ๋ ์ ํฉํจ