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.
We'll cover the following...
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.
Access this course and 1400+ top-rated courses and projects.