Skip to content

Instantly share code, notes, and snippets.

@nodlAndHodl
Created June 1, 2018 21:39
Show Gist options
  • Save nodlAndHodl/0057bf6d8d7c7a2dec3d5569d6780efa to your computer and use it in GitHub Desktop.
Save nodlAndHodl/0057bf6d8d7c7a2dec3d5569d6780efa to your computer and use it in GitHub Desktop.
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