var ITERATIONS = 100000; var sum = 0; for (var i = 0; i < ITERATIONS; i++) { sum += "42" + i; } sum