📅  最后修改于: 2022-03-11 15:02:17.200000             🧑  作者: Mango
var output = "";
// Start timing now
console.time("concatenation");
for (var i = 1; i <= 1e6; i++) {
output += i;
}
// ... and stop.
console.timeEnd("concatenation");