Skip to content

Instantly share code, notes, and snippets.

@rohit012
Created January 16, 2017 04:57
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save rohit012/87899836a7444fc63bdb44c3ad03d070 to your computer and use it in GitHub Desktop.
const person1 = 'Bob';
const person2 = 'Fred';
//using typical string concatenation
let oldConcatStr = 'We know that ' + person1 + ' is friends with ' + person2;
//using template strings
let newConcatStr = `We know that ${person} is friends with ${person2}`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment