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 227 views
2 answers 182 views
1 answer 207 views
1 answer 204 views
1 answer 198 views
198 views asked Jan 16, 2022 by avibootz
3 answers 263 views
263 views asked Jun 7, 2021 by avibootz
...