--- id: cf1231c1c11feddfaeb5bdef title: Multiply Two Numbers with JavaScript challengeType: 1 videoUrl: '' localeTitle: 使用JavaScript将两个数字相乘 --- ## Description 我们也可以将一个数字乘以另一个数字。 JavaScript使用*符号来乘以两个数字。 例 myVar = 13 * 13; //指定169 ## Instructions 更改0使产品等于80 。 ## Tests ```yml tests: - text: 使变量product等于80 testString: 'assert(product === 80,"Make the variable product equal 80");' - text: 使用*运算符 testString: 'assert(/\*/.test(code), "Use the * operator");' ``` ## Challenge Seed ```js var product = 8 * 0; ``` ### After Test ```js console.info('after the test'); ``` ## Solution ```js // solution required ```
*
例
myVar = 13 * 13; //指定169
0
80
product