Template Strings Javascript

An example below of template strings in ES6/ES2015 Javascript.

Babel compiles the latest ES6 into browser ready JavaScript.
Learn ES6 via bable.io.

Template literals (strings) are denoted with the back tick key ` and reference variables with the dollar symbol and curly braces {$var}.

Template Strings MDN Resources:


Multi-line Strings

Expression Interpolation

Nesting Templates

Tagged Template Literals

Escape Sequences


Template String written in ES6/2015 using the babel enabled editor. Code written in JavaScript. No JSX used.