es6-template-literals-Q&A Flashcards
1
Q
What is the syntax for writing a template literal?
A
Template literals are enclosed by backtick (`) characters instead of double or single quotes. Along with having normal strings, template literals can also contain other parts called placeholders, which are embedded expressions delimited by a dollar sign and curly braces: ${expression} .
2
Q
What is “string interpolation”?
A
String interpolation is replacing placeholders with values in a string literal.