How to create multiline string in JavaScript

1 Answer

0 votes
let s = `JavaScript 
is a programming language 
that conforms to 
the 
ECMAScript specification. 
`
 
console.log(s); 
 
 
  
  
  
/*
run:
  
"JavaScript 
is a programming language 
that conforms to 
the 
ECMAScript specification. 
"
  
*/

 



answered May 19, 2021 by avibootz
edited Jan 22, 2022 by avibootz

Related questions

3 answers 354 views
2 answers 298 views
1 answer 306 views
1 answer 284 views
1 answer 272 views
272 views asked Jan 16, 2022 by avibootz
3 answers 385 views
385 views asked Jun 7, 2021 by avibootz
...