How do you write multi-line strings in template literals?

Posted by Jennifer | Updated on

How do you write multi-line strings in template literals? In ES5, you would have to use newline escape characters(‘\n’) and concatenation symbols(+) in order to get multi-line strings.

Whereas in ES6, You don’t need to mention any newline sequence character,


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers