Using Template Literals for Multi-line Strings in Javascript


Create multi-line strings without concatenation using template literals.

Source Code

let multiLine = `This is
a multi-line
string`;
console.log(multiLine);
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments