Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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
You can’t perform that action at this time.