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} .

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is “string interpolation”?

A

String interpolation is replacing placeholders with values in a string literal.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly