2 ms·
Essentially all JS engines implement string concatenation lazily as ropes so there isn't much difference.
by spicyj 11y ago
Essentially all JS engines implement string concatenation lazily as ropes so there isn't much difference.
- yoklov 11y agoWell, you can do it in O(log(n)) time instead of O(n) time. But n is unlikely to be large enough for this to even matter a little bit.