Skip to content

Instantly share code, notes, and snippets.

@sarahquigley
Created May 2, 2018 20:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sarahquigley/eb7e28f5066be264fdd640a7eaa01ae5 to your computer and use it in GitHub Desktop.
Save sarahquigley/eb7e28f5066be264fdd640a7eaa01ae5 to your computer and use it in GitHub Desktop.
Example of ES6 Multiline Strings
/* 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