es6-template-literals Flashcards

1
Q

What is the syntax for writing a template literal?

A

backticks with $ and { } when using values of variables (nested inside the curly braces)

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

What is “string interpolation”?

A

it is when values of variables/expressions are substituted to parts of the string

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