Javascript - Template Literals
Code Life
By Pierre Marsaa
What are Template Literals?
Template literals (used with ` ) have a special superpower: they let you insert variables directly into your string using ${}. This is called interpolation.
↗️
Loading editor...
↶
↷
↗️
Loading editor...
↶
↷
Both ways produce the same result, but template literals are cleaner and easier to read!
Verify