Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js template literal avoid white spaces

// How to avoid template literals breaking a line or
// adding white spaces due to indentation
// User Array.join
[
    `This is a very long string. `,
    `It just keeps going `,
    `and going `,
    `and going `,
    `and going `,
    `and going `
].join('')
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #js #template #literal #avoid #white #spaces
ADD COMMENT
Topic
Name
8+6 =