How Do You Use Template Literals?
Problem
You want to know how to use a template literal in a project.
Solution
Template literals are very similar to template systems like Handlebars. Template literals give you the ability to set placeholders for values and render them at runtime.
The Code
Listing 14-1. Using Template Literals
var characterName = 'Pinky'
var quote = `Same thing we do every night ${characterName}!`;
console.log(quote) //Same thing we do every night Pinky!
How It Works
Template literals work in a similar way to using a template ...