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 Template Strings</h1> <p>Templates use back-ticks (``) to define a string:</p> <p id="demo"></p> <p>Templates are not supported in Internet Explorer.</p> <script> let text = `Hello world!`; document.getElementById("demo").innerHTML = text; </script> </body> </html>