Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript multiline string


// OPTION 1
var MultilineString = `This
is 
a multiline 
string`; // Note: use the template quotation marks above the tab key

// OPTION 2
var MultilineString = 'This 

is 

a multiline 

string'; // Note: use the "
" as a newline character
 
PREVIOUS NEXT
Tagged: #javascript #multiline #string
ADD COMMENT
Topic
Name
4+7 =