let array = new Array(); for (let i = 0; i < array.length; i++) { array.push(i**i); let tmp = array[i]; console.log(tmp); };