JavaScript Essentials: Template Literals

preview_player
Показать описание
In this tutorial, you'll learn about template literals in JavaScript and what problems they solve with traditional JavaScript strings.

Don’t forget to subscribe to the Junior Developer Central channel for more videos and tutorials!

So a template literal is essentially a new way of defining strings that was introduced in ES2015. There's nothing particularly special about them other than they solve several common problems with JavaScript strings.

For example, you don't have to worry about line breaks and extra whitespace in your strings. Also, you can easily include any type of quotes or even insert variables without having to break out of the string syntax.

By the end of the tutorial, you'll have a good idea of how to use a template literal and the benefits to using them over JavaScript strings. Channel Handle @codebubb
Рекомендации по теме
Комментарии
Автор

i wish this guy would teach us in school :)

allin