Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Template Literals in ES6
//instead of doing string concatenation like so:
let name = "Nick";
let last = "Dude";
let full = "My name is " + name + " " + last;
// we can do the following in ES6 for string literals using template
let redo = `My name is {name} {last}!`;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment