运行 ❯
获取您
的
网站
×
更改方向
保存代码
更改主题,深色/浅色
前往 Spaces
<!DOCTYPE html> <html> <body> <h2>JavaScript String Operators</h2> <h2>The + Operator</h2> <p>The + operator concatenates (adds) strings.</p> <p id="demo"></p> <script> let text1 = "What a very "; let text2 = "nice day"; document.getElementById("demo").innerHTML = text1 + text2; </script> </body> </html>