hw06_13.html 378 B

1234567891011121314151617
  1. <header>
  2. <h1>Flat</h1>
  3. </header>
  4. <body>
  5. <script>
  6. arr = [];
  7. for (let i = 0; i < 5; i++) {
  8. arr[i] = [];
  9. for (let j = 0; j < 5; j++) {
  10. arr[i][j] = (i + 1) * (j + 1);
  11. }
  12. }
  13. const arrCopy = [...arr[0], ...arr[1], ...arr[2], ...arr[3], ...arr[4]];
  14. alert(arrCopy);
  15. </script>
  16. </body>