Created
May 2, 2018 20:27
-
-
Save sarahquigley/eb7e28f5066be264fdd640a7eaa01ae5 to your computer and use it in GitHub Desktop.
Example of ES6 Multiline Strings
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
/* ES5 */ | |
var message = 'The internet is for cat videos.\n' + | |
'A chorus of cats meows from every screen!\n' + | |
'The cuteness is overwhelming.'; | |
/* >= ES6 */ | |
var message = `The internet is for cat videos. | |
A chorus of cats meows from every screen! | |
The cuteness is overwhelming.`; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment