JS : typeof 연산자 변수의 자료형을 알아내는 연산자이다. 연산자인 typeof x와 함수인 typeof(x)로 문법을 지원한다. typeof 연산자는 피연산자 앞에 위치한다 변수를 사용하는 개발자가 직접 작성했을 경우엔 typeof를 사용할 일이 없지만, 다른 개발자가 작성한 변수의 type을 알아야 하거나 API통신 등의 데이터를 받아 type에 따라 다르게 처리해야 할 경우 많이 사용된다. let str = "hello world!"; console.log(typeof str); //string console.log(typeof undefined); //undefined console.log(typeof 123); //number (정수) console.log(typeof 456n); //b..