es6-template-literals Flashcards
1
Q
What is the syntax for writing a template literal?
A
Backticks ``
2
Q
What is “string interpolation”?
A
substituting parts of the string by extracting the value of a variable within a template literal, nesting the variable inside of a opening and closing curly brace and adding a dollar sign to the left of the curly brace.