isNaN() method of global object <script> <br>/* <br>isNaN() function is usually used to detect the results of parseFloat() and parseInt() , to determine whether they represent legal numbers. <br>Of course, you can also use the isNaN() function to detect arithmetic errors, such as using 0 as a divisor. <br>*/ <br>document.write(isNaN(123) "<br/>");//false <br>document.write(isNaN(-1.23) "<br/>") ;//false <br>document.write(isNaN(5-2) "<br/>");//false <br>document.write(isNaN(0) "<br/>") ;//false <br>document.write(isNaN("Hello") "<br/>");//true <br>document.write(isNaN("2005/12/12") "< br/>");//true <br></script>