134Multiply Two Numbers with JavaScript(乘法运算)
最后更新时间:2017年7月28日09:49:24
说明:
我们也可在 JavaScript 中使用乘法运算。
JavaScript 使用这个 * 符号来让两个数字相乘。
举例
myVar = 13 * 13; // 把 169 赋值给 myVar
任务
改变数值 0 来让变量 product 的值等于 80。
需要使 product 的值等于 80
使用 * 运算符
原始代码:
var product = 8 * 0;
调试代码:
var product = 8 * 10;
Previous133Subtract One Number from Another with JavaScript(减法运算)Next135Divide One Number by Another with JavaScript(乘积)
Last updated
Was this helpful?