Javascript examples for Number:NaN
The NaN property represents "Not-a-Number" value.
NaN
<!DOCTYPE html> <html> <body> <button onclick="myFunction()">Test</button> <p id="demo"></p> <script> function myFunction() {// w w w .j a v a2 s . co m document.getElementById("demo").innerHTML = Number.NaN; } </script> </body> </html>