es6-template-literals Flashcards

1
Q

What is the syntax for writing a template literal?

A

you would use backticks to wrap a string and assign it to a variable.

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

What is “string interpolation”?

A

string interpolation means to substitute a part of string for variables or expressions.

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