es6-template-literals Flashcards
1
Q
What is the syntax for writing a template literal?
A
Template literals use backticks
rather than single or double quotes and the javascript expression is as follows: ${variable}
2
Q
What is “string interpolation”?
A
A process where variables and expressions is embedded in a string. The variable/expression has to be placed in a space block as follows:
${variable_name}