Run ❯
Get your
own
website
Result Size:
625 x 565
×
Change Orientation
Save Code
Change Theme, Dark/Light
Go to Spaces
<!DOCTYPE html> <html> <body> <h1>JavaScript Strings</h1> <p>The safest way to break a code line in a string is using string addition.</p> <p id="demo"></p> <script> document.getElementById("demo").innerHTML = "Hello " + "Dolly!"; </script> </body> </html>