Multiple string concatenation

by Mohan 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 )
________________________________________


570
like
0
dislike
0
mail
flag

You must LOGIN to add comments