Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js template literal without 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 #white #spaces
ADD COMMENT
Topic
Name
7+7 =