Multiline Strings

Learn how to create multiline strings using template literals with an example.

In the past , creating a multi-line string involved effort and resulted in noisy code. Template literals may be single line or multi-line; there is no special syntax to set the two apart, except for line breaks.

Get hands-on with 1200+ tech skills courses.