Template Literals
We'll cover JavaScript's new way of creating a string, the backticks (`). We'll see how these backticks make strings easier to create dynamically and how they make working with strings more intuitive.
These are fun and straightforward.
Using the new special character `, right above the tab key on the left side of the keyboard, we now have what are called template literals. We now have a way to visually format text exactly the way we want it. The way it’s printed will be exactly how it looks.
Strings created with backticks (`) retain their formatting exactly as written. Here’s an example.
Get hands-on with 1400+ tech skills courses.