Long string without breaks | var 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. 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. 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.';
| ready |
Long string with breaks | var 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. 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. 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.';
| ready |
Long string with concats | var 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.' +'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.'+'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.';
| ready |
Long strings using joins | var 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.','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.','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.'
].join('');
| ready |