Last active
August 29, 2015 14:17
-
-
Save jaspervalero/c6517e6e88dbf33d5314 to your computer and use it in GitHub Desktop.
ES5 Concatenating Strings For Use With Underscore.js Templates
This file contains hidden or 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
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