코드:
결과보기 »
<!DOCTYPE html> <html lang="ko"> <head> <meta charset="UTF-8"> <title>JavaScript Operators</title> </head> <body> <h1>typeof 연산자</h1> <script> document.write((typeof "문자열") + "<br>"); document.write((typeof 10) + "<br>"); document.write((typeof NaN) + "<br>"); document.write((typeof false) + "<br>"); document.write((typeof undefined) + "<br>"); document.write((typeof new Date()) + "<br>"); document.write(typeof null); </script> </body> </html>