es6-template-literals Flashcards
1
Q
What is the syntax for writing a template literal?
A
- Backtick;
- Dollar sign
- Opening curly brace;
- Variable;
- Closing curly brace;
- Backtick.
2
Q
What is “string interpolation”?
A
To substitute part of the string for variables or expressions.