string literal vs array.join

Edit on GitHub

Setup

Tests

  • string literal

    var test = `<body>
      <article>
        <time datetime='1'>1</time>
      </article>
    </body>`;
  • array.join

    var test = [
    '<body>',
    '  <article>',
    '    <time datetime="1">1</time>',
    '  </article>',
    '</body>;'
    ].join('\n');