Multiple string concatenation
by Mohan[ Edit ] 2012-09-20 23:42:41
Multiple string concatenation
var html = ['aaa', 'bbb', 'ccc', ...].join('');
Is faster than:
var html = 'aaa' + 'bbb' + 'ccc' + ...;
This is true with a big number of elements ( > 5000 )
________________________________________