Logo

Programming-Idioms

History of Idiom 48 > diff from v52 to v53

Edit summary for version 53 by nsaleem:
New JS implementation by user [nsaleem]

Version 52

2019-09-26, 15:16:50

Version 53

2019-09-26, 17:10:26

Idiom #48 Multi-line string literal

Assign to variable s a string literal consisting in several lines of text

Idiom #48 Multi-line string literal

Assign to variable s a string literal consisting in several lines of text

Extra Keywords
multiline raw
Extra Keywords
multiline raw
Code
let s = `This is a very long string which needs
to wrap across multiple lines because
otherwise my code is unreadable.`;
Doc URL
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#Multi-line_strings