let str = ''; for (let i = 0; i < 10_000; i++) str += i
const arr = []; for (let i = 0; i < 10_000; i++) arr.push(i); arr.join('');