Getting Started with Modern JavaScript — Template Literals

const newWay = `is cool`;

String Interpolation

const name = 'Jack';
const old = 'My name is '+ name + '.';

Multiline

const concatenation = 'First line\n \
second line';

Tagged Templates

hi(['My name is ', '.'], name);

Conclusion

Getting Started Series

Frontend Architect • JavaScript Enthusiast • Educative.io Author • ngVikings organizer.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store