let arr = []; const fin = Number((Math.random() * 10).toFixed()) for (let i = 0; i <= fin; i++) { arr.push(i); }