Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to add a new line in template literal javascript

to add a new line forget 
 
... simply use a new line in the definition
let a = "a", b="b" 
console.log(
`${a}
${b}`      ); 
 
PREVIOUS NEXT
Tagged: #add #line #template #literal #javascript
ADD COMMENT
Topic
Name
8+2 =