string
, number
, boolean
, undefined
, null
console.log(typeof 1) // number console.log(typeof '1') // string console.log(typeof (1 < 2)) // boolean
타입(type)
과 값(value)
이 모두 일치하는지 비교)===
(일치 연산자)!==
(불일치 연산자)cf) ==(동등 연산자) / !=(부등 연산자)
- 강제 형 변환 후 비교를 수행
- JavaScript에서 거의 쓸 일 없음...