javascript variable with multiline text
// 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 characterlet multilineText = `This
is
a
multiline
text`;
console.log(multilineText);
Also in JavaScript:
- ejs
- react native class component template keyboard shortcut
- async iife
- ng-container vs ng-template
- how to access data in json format using asp.net c#
- get year javascript copyright
- for loop using javascript
- export app react native
- How to abreviate digits in js
- array remove empty entrys js
- bootstrap javascript cdn
- javascript sendredirect
- how to create my own filter in js
- load +main.js with system.import
- jquery replicate div on drag
- react window navigate
- js remove json value duplicates
- create express server local
- if button is keeping pressed execute increment javascript
- cypress click
- react toastify does not have design
- find longest word in string javascript
- how to clear array in javascript
- javascript join list of string