Number NaN Property - Javascript Number

Javascript examples for Number:NaN

Description

The NaN property represents "Not-a-Number" value.

Return Value:

NaN

Demo Code

ResultView the demo in separate window

<!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>

Related Tutorials