군침이 싹 도는 코딩
자료형 ( typeof ) 본문
const name = "Mike";
console.log(typeof 3);
console.log(typeof name);
console.log(typeof true);
>> "number"
"string"
"boolean"
# 변수의 타입을 확인할 때 사용할 수 있다
'JavaScript > Basic' 카테고리의 다른 글
변수, 호이스팅, TDZ(Temporal Dead Zone) (0) | 2023.06.26 |
---|---|
연산자 ( 증가 연산자 , 감소 연산자 ) (0) | 2023.06.26 |
형변환 (0) | 2023.06.26 |
대화 상자 ( alert, prompt, confirm ) (0) | 2023.06.26 |
변수 ( let, const ) (0) | 2023.06.26 |