DEV Community

Discussion on: ES6 and Beyond > Part 1

Collapse
 
amatyas001 profile image
Mátyás Angyal • Edited

String interpolation also called template literals right?
And you can use expressions in the literals like: ${ var_1 + var_2 }

Collapse
 
elanandkumar profile image
Anand Kumar

Yes, and the example given by you works well. Just make sure to use backtick :)