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>With back-ticks, you can use both single and double quotes inside a string:</p> <p id="demo"></p> <p>Templates not supported in Internet Explorer.</p> <script> let text = `He's often called "Johnny"`; document.getElementById("demo").innerHTML = text; </script> </body> </html>