Question · JavaScript and TypeScript course · Module 2: Functions, Arrays and Objects
Template Literals
Which use of a template literal is correct?
Answer options
Dinosaur: ${species}- "Dinosaur: ${species}"
- Dinosaur: + species
- 'Dinosaur: ${species}'
Show the answer
Correct answer:
Dinosaur: ${species}