FYI, CoffeeScript has multiline strings (and a bunch of other nice things!)
var str = multiline(function(){/*!@preserve
multi
line
string
*/console.log});
Really?The topic is about how to do multiline string in Javascript in one way, and one alternative is not to use multiline strings in Javascript. It's kinda big jump from the original purpose of the topic to start suggesting alternative languages... if we are to be this slack, then we can start spamming most threads with weakly related stuff. For example, you can easily advertise coffeescript in each and every javascript thread in a similar way you did in this specific thread but do we really need want that?