You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Template literals are an alternative way of working with strings, which was introduced in the ES6 addition to the JavaScript language.
With template literals, an expression can be embedded in a placeholder. A placeholder is represented by ${}, with anything within the curly brackets treated as JavaScript and anything outside the brackets treated as a string
*/
var greet = "Hello";
var place = "World";
console.log(greet + " " + place + " !");
console.log(`${greet} ${place} !`); //display both variables using template literals