es6-template-literals Flashcards

1
Q
  1. What is the syntax for writing a template literal?
A
Template literals are enclosed by the backtick (` `) character	
let str = `Template literal in ES6`;
JS expression: ${expression}
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is “string interpolation”?

A

embedding variables and expressions in the string

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