Skip to content

Instantly share code, notes, and snippets.

@jaspervalero
Last active August 29, 2015 14:17
Show Gist options
  • Save jaspervalero/c6517e6e88dbf33d5314 to your computer and use it in GitHub Desktop.
Save jaspervalero/c6517e6e88dbf33d5314 to your computer and use it in GitHub Desktop.
ES5 Concatenating Strings For Use With Underscore.js Templates
var message = [
'I hope you can read my mind and understand how terrible',
'concatenating strings are in the current version of',
'JavaScript <%= prefix %> <%= firstName %> ',
'<%= lastName %> There nothing fun about it. Just a',
'whole lot of pain and yawn mode'
].join( '\n' );
console.log( message );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment