Skip to content

Instantly share code, notes, and snippets.

@w3cj
Last active November 28, 2016 21:56
Show Gist options
  • Save w3cj/07234f417f8d9df51c15 to your computer and use it in GitHub Desktop.
Save w3cj/07234f417f8d9df51c15 to your computer and use it in GitHub Desktop.
//Single Line
var message = 'Jean shorts 8-bit marfa synth austin, ethical sustainable actually bespoke mumblecore. Slow-carb fixie lo-fi celiac. Master cleanse lumbersexual pickled, shabby chic farm-to-table poutine wolf single-origin coffee chartreuse humblebrag four loko art party fanny pack knausgaard stumptown. Semiotics tumblr viral plaid, crucifix narwhal ugh chicharrones hoodie. Whatever green juice XOXO celiac sartorial, pinterest truffaut cronut crucifix pabst seitan aesthetic lo-fi direct trade. Waistcoat messenger bag cold-pressed lomo marfa, squid humblebrag lumbersexual blue bottle fixie portland typewriter street art. Selvage iPhone salvia ethical.';
//Multi line concat
var message = 'Jean shorts 8-bit marfa synth austin, ethical sustainable actually bespoke mumblecore.'
+ 'Slow-carb fixie lo-fi celiac. Master cleanse lumbersexual pickled, shabby chic farm-to-table poutine'
+' wolf single-origin coffee chartreuse humblebrag four loko art party fanny pack knausgaard stumptown. '
+'Semiotics tumblr viral plaid, crucifix narwhal ugh chicharrones hoodie. Whatever green juice XOXO celiac'
+'sartorial, pinterest truffaut cronut crucifix pabst seitan aesthetic lo-fi direct trade. Waistcoat messenger'
+' bag cold-pressed lomo marfa, squid humblebrag lumbersexual blue bottle fixie portland typewriter street art.'
+' Selvage iPhone salvia ethical.'
// Backslash Concat
var message = 'Jean shorts 8-bit marfa synth austin, ethical sustainable actually bespoke mumblecore. \
Slow-carb fixie lo-fi celiac. Master cleanse lumbersexual pickled, shabby chic farm-to-table poutine \
wolf single-origin coffee chartreuse humblebrag four loko art party fanny pack knausgaard stumptown. \
Semiotics tumblr viral plaid, crucifix narwhal ugh chicharrones hoodie. Whatever green juice XOXO celiac \
sartorial, pinterest truffaut cronut crucifix pabst seitan aesthetic lo-fi direct trade. Waistcoat messenger \
bag cold-pressed lomo marfa, squid humblebrag lumbersexual blue bottle fixie portland typewriter street art. \
Selvage iPhone salvia ethical.'
// Array join
var message = ['Jean shorts 8-bit marfa synth austin, ethical sustainable actually bespoke mumblecore.',
'Slow-carb fixie lo-fi celiac. Master cleanse lumbersexual pickled, shabby chic farm-to-table poutine',
' wolf single-origin coffee chartreuse humblebrag four loko art party fanny pack knausgaard stumptown. ',
'Semiotics tumblr viral plaid, crucifix narwhal ugh chicharrones hoodie. Whatever green juice XOXO celiac',
'sartorial, pinterest truffaut cronut crucifix pabst seitan aesthetic lo-fi direct trade. Waistcoat messenger',
' bag cold-pressed lomo marfa, squid humblebrag lumbersexual blue bottle fixie portland typewriter street art.',
' Selvage iPhone salvia ethical.'].join('');
// ES2015 Template String
var message = `Jean shorts 8-bit marfa synth austin, ethical sustainable actually bespoke mumblecore.
Slow-carb fixie lo-fi celiac. Master cleanse lumbersexual pickled, shabby chic farm-to-table poutine
wolf single-origin coffee chartreuse humblebrag four loko art party fanny pack knausgaard stumptown.
Semiotics tumblr viral plaid, crucifix narwhal ugh chicharrones hoodie. Whatever green juice XOXO celiac
sartorial, pinterest truffaut cronut crucifix pabst seitan aesthetic lo-fi direct trade. Waistcoat messenger
bag cold-pressed lomo marfa, squid humblebrag lumbersexual blue bottle fixie portland typewriter street art.
Selvage iPhone salvia ethical.`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment