DEV Community 👩‍💻👨‍💻

Discussion on: 6 Advanced JavaScript Concepts You Should Know

Collapse
teoulas profile image
Theodoros Orfanidis • Edited on

The last example can be improved even more by using template strings:

let HTMLCode =  `<h1>${pageTitle}</h1>
                <div id="content">
                  <p>${pageContent}</p>`; // and so on
Enter fullscreen mode Exit fullscreen mode