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}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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}

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