Template literals are a type of string literal that allows values to be interpolated, and optionally the interpolation and construction behaviour to be controlled using a “tag” function.

Syntax

Template Literals were first specified by ECMAScript 6 §12.2.9.

Introduction

Basic interpolation and multiline strings

Tagged strings

Raw strings

Templating HTML With Template Strings