코드:
결과보기 »
<!DOCTYPE html> <html lang="ko"> <head> <meta charset="UTF-8"> <title>JavaScript Predefined Function</title> </head> <body> <h1>isNaN() 함수</h1> <script> document.write(isNaN(123) + "<br>"); document.write(isNaN(123e100) + "<br>"); document.write(isNaN(0) + "<br>"); document.write(isNaN(true) + "<br>"); document.write(isNaN(false) + "<br>"); document.write(isNaN(null) + "<br>"); document.write(isNaN("123") + "<br>"); document.write(isNaN("") + "<br>"); document.write(isNaN("문자열") + "<br>"); document.write(isNaN(undefined) + "<br>"); document.write(isNaN(NaN)); </script> </body> </html>