JavaScript99乘法表
时间: 2023-12-16 09:04:13 浏览: 63
JavaScript实现99乘法表及隔行变色实例代码
好的,以下是JavaScript实现的99乘法表代码:
for (var i = 1; i <= 9; i++) {
var result = "";
for (var j = 1; j <= i; j++) {
result += i + "*" + j + "=" + i * j + " ";
}
console.log(result);
}
阅读全文