Mid JavaScript

What are template literals?

Template literals allow embedded expressions and multi-line strings using backticks

(`).

Example:

let name = "John";

console.log(`Hello, ${name}!`);

More from JavaScript Tutorial

All questions for this course