123456789101112131415161718192021222324 |
- <header>
- <h1>Multiply table rest</h1>
- </header>
- <body>
- <script>
- arr = [];
- for (let i = 1; i <= 5; i++) {
- arr[i] = [];
- for (let j = 1; j <= 5; j++) {
- arr[i][j] = i * j;
- }
- }
- const [, ...a] = arr;
- const [, ...aa0] = a[0];
- const [, ...aa1] = a[1];
- const [, ...aa2] = a[2];
- const [, ...aa3] = a[3];
- const [, ...aa4] = a[4];
- arr = [aa0, aa1, aa2, aa3, aa4];
- alert(arr);
- </script>
- </body>
|