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
Source by javascriptf1.com #
 
PREVIOUS NEXT
Tagged: #javascript #multiline #string
ADD COMMENT
Topic
Name
7+5 =