ES6 TEMPLATE LITERALS Flashcards
1
Q
What is the syntax for writing a template literal?
A
Backticks at beginning of string and ${ } to whatever variable
\n for new line
.join
2
Q
What is “string interpolation”?
A
abillity to substitute part of the string for the values of the variables or expressions