Question · JavaScript and TypeScript course · Module 2: Functions, Arrays and Objects
Template Literals - Inserting Expressions
What syntax allows you to insert a JavaScript expression inside a template literal?
Answer options
- #{expression}
- ${expression}
- @{expression}
- %{expression}
Show the answer
Correct answer:
- ${expression}