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}.
2
Q
What is “string interpolation”?
A
String interpolation is the ability to substitute values or variables into parts of strings without using concatenation.