filmov
tv
ES6 Tutorial #3: Template Literals(Template Strings) | Modern Javascript 2021
Показать описание
ES6 Tutorial #3: Template Literals(Template Strings) | Modern Javascript 2021
Template Literals(Template Strings) in Javascript ES6 are another way to handle strings. To use template string, we will not use single quotes(' ') and double quotes(" "), instead we use back tick(``) syntax.
Topics Covered:
00:00 - Introduction
00:49 - What is Template Literals/Template Strings
01:22 - Problem with Double and Single Quotes
03:15 - Template String (Interpolation)
04:36 - Escape Sequence Not Required
05:53 - MultiLine String
06:22 - Expression
08:30 - ConditionalExpression
10:40- Thank you for watching 🙏
Template Literals provides some advantage of using back tick syntax like
1) Better String Creation
2) No need to handle escaping
3)Multi line string
4)String interpolation
5)Expression
6)Complex Expression.
Template Literals are very useful when we have complex string as it handles everything just inside back tick syntax.
I hope you have liked this video. For such more video like and subscribe my
channel
If you want to learn Angular then
Follow us on:
For more such interesting videos, please subscribe to our channel and stay connected.
#templateLiterals #ModernJavaScript #NishaSingla
Template Literals(Template Strings) in Javascript ES6 are another way to handle strings. To use template string, we will not use single quotes(' ') and double quotes(" "), instead we use back tick(``) syntax.
Topics Covered:
00:00 - Introduction
00:49 - What is Template Literals/Template Strings
01:22 - Problem with Double and Single Quotes
03:15 - Template String (Interpolation)
04:36 - Escape Sequence Not Required
05:53 - MultiLine String
06:22 - Expression
08:30 - ConditionalExpression
10:40- Thank you for watching 🙏
Template Literals provides some advantage of using back tick syntax like
1) Better String Creation
2) No need to handle escaping
3)Multi line string
4)String interpolation
5)Expression
6)Complex Expression.
Template Literals are very useful when we have complex string as it handles everything just inside back tick syntax.
I hope you have liked this video. For such more video like and subscribe my
channel
If you want to learn Angular then
Follow us on:
For more such interesting videos, please subscribe to our channel and stay connected.
#templateLiterals #ModernJavaScript #NishaSingla
Комментарии