es6-template-literals Flashcards

1
Q

What is the syntax for writing a template literal?

A

The syntax is backticks “`” surrounding a group of characters and inside the backticks where the value of an expression is supposed to go use ${expression or variable name}.

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 the ability to substitute values or variables into parts of strings without using concatenation.

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