运行 ❯
获取您
自己的
网站
×
更改方向
保存代码
更改主题,暗/亮
转到 Spaces
<!DOCTYPE html> <html> <body> <h2>JavaScript Variables</h2> <p>Subtracting a string from a string, does not generate an error but returns NaN (Not a Number):</p> <p id="demo"></p> <script> document.getElementById("demo").innerHTML = "Hello" - "Dolly"; </script> </body> </html>