TypeCheck1 [Javascript] Type 체크 1. Type of Type of의 경우 피연산자의 데이터 타입을 문자열로 반환한다. typeof ''; // string typeof 1; // number typeof NaN; // number typeof true; // boolean typeof []; // object typeof {}; // object typeof new String(); // object typeof new Date(); // object typeof /test/gi; // object typeof function () {}; // function typeof undefined; // undefined typeof null; // object typeof undeclared; // undefined 배열과 객체도 objec.. 2021. 6. 2. 이전 1 다음