JavaScript Program to Create Multiline Strings Using Concatenation (+) Operator Full Project For Beginners

 

 

script.js

 

 

// program to create a multiline strings

// using the + operator
const message = 'This is a long message\n' + 
    'that spans across multiple lines\n' + 
    'in the code.'

console.log(message);

Leave a Reply