Variable JavaScript avec texte multiligne
let multilineText = `This
is
a
multiline
text`;
console.log(multilineText);
vmxes
let multilineText = `This
is
a
multiline
text`;
console.log(multilineText);
// OPTION 1
var MultilineString = `This
is
a multiline
string`; // Note: use the template quotation marks above the tab key
// OPTION 2
var MultilineString = 'This \n\
is \n\
a multiline \n\
string'; // Note: use the "\n\" as a newline character
const htmlString = `${user.name} liked your post about strings`;