Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript Multiline Strings Using Template Literals

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

console.log(message1)
 
PREVIOUS NEXT
Tagged: #javascript #Multiline #Strings #Using #Template #Literals
ADD COMMENT
Topic
Name
7+1 =