Watch the video tutorial: ES6 Template Literals (Template strings) #02
In this ES6 JavaScript tutorial we will learn about Template Literals (Template strings).
What are Template Literals?
Template literals are string literals that allows us to embed expressions, multi-line strings and string interpolation.
Template literals are enclosed using backtick
` ` instead of single quotes and double quotes.
Let's print the string Hello World using single and double quotes.
console.log('Hello World');
console.log("Hello World");
Now, let's print the same string using template literal.
console.log(`Hello World`);