hw10_11_multiply table.html 292 B

1234567891011121314
  1. <head>multiply table</head>
  2. <body>
  3. <script>
  4. arr = [];
  5. for (let i = 1; i <= 9; i++) {
  6. arr[i - 1] = [];
  7. for (let j = 1; j <= 9; j++) {
  8. arr[i - 1][j - 1] = i * j;
  9. }
  10. }
  11. console.log(arr);
  12. </script>
  13. </body>