用Javascript打印九九乘法表
时间: 2023-09-06 10:14:19 浏览: 74
Java语言打印九九乘法表
Sure, here's an example code to print the multiplication table in JavaScript:
```
for (var i = 1; i <= 9; i++) {
var row = '';
for (var j = 1; j <= i; j++) {
row += `${j} x ${i} = ${i*j}\t`;
}
console.log(row);
}
```
This code will print the multiplication table from 1 to 9 in the console.
阅读全文