template literal

A JavaScript string written in backticks that can embed expressions with ${...}, such as `Hello, ${name}!`.

In more detail

Unlike ordinary quotes, template literals can also span several lines. Template literal types use the same backtick syntax in type positions to build string literal types.

Related terms

Taught in

References