hw06_06.html 414 B

12345678910111213141516171819202122
  1. <header>
  2. <h1>Multiply table slice</h1>
  3. </header>
  4. <body>
  5. <script>
  6. arr = [];
  7. for (let i = 1; i <= 5; i++) {
  8. arr[i] = [];
  9. for (let j = 1; j <= 5; j++) {
  10. arr[i][j] = i * j;
  11. }
  12. }
  13. arr = arr.slice(1)
  14. for (let i = 0; i < 5; i++) {
  15. arr[i] = arr[i].slice(1);
  16. }
  17. alert(arr);
  18. </script>
  19. </body>