es6-template-literals Flashcards
1
Q
What is the syntax for writing a template literal?
A
In ES6, you create a template literal by wrapping your text in backticks (`) as follows:
2
Q
What is “string interpolation”?
A
String formatting: the ability to substitute part of the string for the values of variables or expressions. This feature is also called string interpolation. ${firstName}