typeof 값 //데이터 타입 확인
📌동적으로 실행할 때, 할당 된 값을 반환한다.
📌할당된 값에 따라 타입이 결정된다.
✏
let variable;
console.log(typeof variable); //undefined
variable = "";
console.log(typeof variable); //string
variable = 123;
console.log(typeof variable); //number
variable = {};
console.log(typeof variable); //object
variable = [];
console.log(typeof variable); //object
variable = function () {};
console.log(typeof variable); //function
variable = Symbol();
console.log(typeof variable); //symbol