es6-template-literals Flashcards

1
Q

What is the syntax for writing a template literal?

A
  1. Backtick;
  2. Dollar sign
  3. Opening curly brace;
  4. Variable;
  5. Closing curly brace;
  6. Backtick.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is “string interpolation”?

A

To substitute part of the string for variables or expressions.

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