Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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