Edit This Code:
See Result »
<
!DOCTYPE
html
>
<
html
>
<
body
>
<
p
>
A number divided by a non-numeric string becomes NaN (Not a Number):
<
/p
>
<
p
id
="demo"
>
<
/p
>
<
script
>
document.getElementById(
"demo"
).innerHTML =
100
/
"Apple"
;
<
/script
>
<
/body
>
<
/html
>
<!DOCTYPE html> <html> <body> <p>A number divided by a non-numeric string becomes NaN (Not a Number):</p> <p id="demo"></p> <script> document.getElementById("demo").innerHTML = 100 / "Apple"; </script> </body> </html>
Result:
Privacy Policy