hw06_10.html 347 B

1234567891011121314151617181920
  1. <header>
  2. <h1>Copy</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. alert(arr);
  14. const deep = [...arr];
  15. alert(deep);
  16. </script>
  17. </body>