String + vs Array join

Edit on GitHub

Concatinating string: string + vs array join

Setup

Tests

  • String +

    var a = 'I' + ' love' + ' Javascript!';
  • Array join

    var a = ['I', 'love', 'Javascript!'].join(' ')