1234567891011121314151617181920 |
- <header>
- <h1>Copy</h1>
- </header>
- <body>
- <script>
- arr = [];
- for (let i = 0; i < 5; i++) {
- arr[i] = [];
- for (let j = 0; j < 5; j++) {
- arr[i][j] = (i + 1) * (j + 1);
- }
- }
- alert(arr);
- const deep = [...arr];
- alert(deep);
- </script>
- </body>
|