ES2015: Template Literals – Template Strings

ES2015 Template Literals AKA Template Strings


Multi-line Strings

Expression Interpolation

Nesting Templates

Tagged Template Literals

Escape Sequences


Denoted with back-ticks `` (above the tab key).

Reference variables with ${var} the dollar symbol and curly braces.


Babel (ES2015 Transpiler) Babel transpiles ES2015 into browser ready JavaScript.


Code written in JS (Template Literal in ES2015) no JSX used.