# How to Use Template Literals in JavaScript
var name = 'Tapas';
var publication = 'freeCodeCamp';
var greeting = 'Hello'; // Or Hola
// It produces output like, "Hello Tapas, welcome to freeCodeCamp."
var message = greeting + ' ' + name + ', welcome to ' + publication + '.';
without worrying about +, spaces, and so on?
With ES6, we have template literals
let name = 'Tapas';
let publication = 'freeCodeCamp';
let greeting = 'Hello'; // Or Hola
// A much better way of wrting like natural language sentence
let message = `${greeting} ${name}, welcome to ${publication}.`;