Run ❯
Get your
own
website
Result Size:
625 x 565
×
Change Orientation
Save Code
Change Theme, Dark/Light
Go to Spaces
<!DOCTYPE html> <html> <body> <h2>JavaScript Numbers</h2> <p>You can use the global JavaScript function isNaN() to find out if a value is not a number:</p> <p id="demo"></p> <script> let x = 100 / "Apple"; document.getElementById("demo").innerHTML = isNaN(x); </script> </body> </html>