<head>cubes</head><br><br> <body> <script> let n = +prompt("Enter N (Length)"); const arr = []; for (let i = 0; i < n; i++) { arr[i] = i ** 3; //console.log(arr); } alert(arr); </script> </body>