运行 ❯
获取您
自己
的网站
×
更改方向
保存代码
更改主题,深色/浅色
转到 Spaces
<!DOCTYPE html> <html> <body> <h1>JavaScript Assignment</h1> <h2>Simple Assignment</h2> <h2>The = Operator</h2> <p>x = 10, y = 5, calculate x = y:</p> <p id="demo"></p> <script> let x = 10; let y = 5; x = y; document.getElementById("demo").innerHTML = "Value of x is: " + x; </script> </body> </html>