js는 항상 type를 체크해야 된다. (boolean, string, number...)
console.log(typeof "111231")
number, boolean, undefined, function, string을 체크하려면 typeof 사용, array는 instaceof 사용.
'javascript' 카테고리의 다른 글
| [javascript] #6. scope (큰 버블 작은 버블 들락날락) (0) | 2023.02.15 |
|---|---|
| [javascript] #4. Type coercion(자료구조 확인) (0) | 2023.02.14 |
| [javascript] #3. Value Types (0) | 2023.02.13 |
| [javascript] #2. primitive type (0) | 2023.02.11 |
| [javascript] #1. 콜스택(call stack) (0) | 2023.02.10 |