// bad
const errorMessage = 'This is a super long error that was thrown because of Batman. When you stop to think about how Batman had anything to do with this, you would get nowhere fast.';
// bad
const errorMessage = 'This is a super long error that was thrown because \
of Batman. When you stop to think about how Batman had anything to do \
with this, you would get nowhere \
fast.';
// good
const errorMessage = 'This is a super long error that was thrown because ' +
'of Batman. When you stop to think about how Batman had anything to do ' +
'with this, you would get nowhere fast.';

// bad
[1, 2, 3].map(number => 'As time went by, the string containing the ' +
`${number} became much longer. So we needed to break it over multiple ` +
'lines.'
);
// good
[1, 2, 3].map(number => (
`As time went by, the string containing the ${number} became much ` +
'longer. So we needed to break it over multiple lines.'
));

Year

Month

Day

About the author

Joon Kyoung(a.k.a Firejune) is a web front-end development journeyman,
and passionate about JavaScript. Sometimes he is a buster in interface design.
Making a better web place is his ongoing mission and he is currently working with the best engineers of the industry at RSUPPORT.
He loves coffee, cola and kimchi(what a fantastic combination?!). You can find him on Twitter @firejune or Blog.