Created
January 16, 2017 04:57
-
-
Save rohit012/87899836a7444fc63bdb44c3ad03d070 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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