运行 ❯
获取您的
自有
网站
×
更改方向
保存代码
更改主题,深色/浅色
前往 Spaces
<!DOCTYPE html> <html> <body> <h2>JavaScript Numbers</h2> <p>A common mistake is to expect this result to be 102030:</p> <p id="demo"></p> <script> let x = 10; let y = 20; let z = "30"; let result = x + y + z; document.getElementById("demo").innerHTML = result; </script> </body> </html>