es6-template-literals Flashcards

1
Q

What is the syntax for writing a template literal?

A

Backticks ``

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.

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