1. Home
  2. Javascript
  3. Es6 template literals

Also referred to as template strings. Allows for a simpler use of variables within blocks of text and multi lines.

#javascript#es6
let firstname = "John";
let lastname = "Smith"
console.log(`Hi my name is:
${firstname} ${lastname}`);
// Hi my name is:
// John Smith
copy
Full Javascript cheatsheet