by @codeexamples

How to create a multiline strings in JavaScript

Home » es6 » How to create a multiline strings in JavaScript

We can use backticks (``) to create mutline strings in JavaScript.

Here is an example:

const mutlilineString = `you see mee in
Multiple lines
a
b
c
d
e
f
g
`

Note: The backticks (``) syntax is also called template literals or template strings which is added in es6.