Which is more efficient str += "some string" or array.push().join()

This. 100 times this. Nowadays we aren’t scraping for every byte and millisecond so there is no reason not to write code that couldn’t be easily parsed by some stranger coming in after you.

1 Like