Modern JavaScript
About Lesson

In this JavaScript lesson we are going to talk about JavaScript Template Literals, so template literal are an improvement on string concatenation that you should rarely ever combine strings with traditional concatenation. it is a new feature in JavaScript ES6

 

 

For example in here we want to concatenate two strings, you can use plus sign like this to concatenate these two strings.

 

 

 

Now in ES6 JavaScript we can use template literals to do our concatenation. you can easily use back ticks for doing this.

 

 

 

Let’s create another example, we are going to create a simple function and we want to make upper case our name, for this you can use toUpperCase() function from JavaScript.

Thank you for visiting my website! If you enjoyed the free courses, please consider supporting my works on Patreon.
Exercise Files
No Attachment Found
No Attachment Found