ES6 Essentials 07: Template Literals

preview_player
Показать описание
In this tutorial, we'll take a look at template literals in ES6 and how to use them to make multi-line strings and interpolate variables easily.

Before ES6 you could use single or double quotes to create a string but with ES6 features, you can create template literals with the back tick which have a few distinct features.

In the tutorial, you'll see how to create multi-line strings in JavaScript with template literals (something you can't do with single or double quotes). We'll then take a look at variable substitution (or interpolation) which allows you to combine strings and add JavaScript variables or expressions to your strings without having to use lots of operators.

#JavaScript #ES6 #ES6Essentials Channel Handle @codebubb
Рекомендации по теме