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 355 views
2 answers 299 views
1 answer 307 views
1 answer 285 views
1 answer 272 views
272 views asked Jan 16, 2022 by avibootz
3 answers 386 views
386 views asked Jun 7, 2021 by avibootz
...