JavaScript Template Literal vs. Concatination

Template literals using grave accents

nick3499
1 min readMar 16, 2017

Grave accents `…` make template literals possible, as demonstrated below, where strings can be separated into multiple lines. And where ${a+b}; replaces " + (a+b) + ";.

Sum of values: 6; 
Multiplication of values: 8
Sum of values: 6; Multiplication of values: 8

--

--

nick3499
nick3499

Written by nick3499

coder of JavaScript and Python

No responses yet