运行 ❯
获取你
自己的
网站
×
更改方向
保存代码
更改主题,深色/浅色
前往 Spaces
<!DOCTYPE html> <html> <body> <h1>JavaScript Arithmetic</h1> <h2>Operator Precedence</h2> <p>When many operations has the same precedence, they are computed from left to right.</p> <p id="demo"></p> <script> document.getElementById("demo").innerHTML = 100 + 50 - 3; </script> </body> </html>