1.1 KiB

id, title, challengeType, videoUrl, localeTitle
id title challengeType videoUrl localeTitle
cf1231c1c11feddfaeb5bdef Multiply Two Numbers with JavaScript 1 使用JavaScript将两个数字相乘

Description

我们也可以将一个数字乘以另一个数字。 JavaScript使用*符号来乘以两个数字。

myVar = 13 * 13; //指定169

Instructions

更改0使产品等于80

Tests

tests:
  - text: 使变量<code>product</code>等于80
    testString: 'assert(product === 80,"Make the variable <code>product</code> equal 80");'
  - text: 使用<code>*</code>运算符
    testString: 'assert(/\*/.test(code), "Use the <code>*</code> operator");'

Challenge Seed

var product = 8 * 0;

After Test

console.info('after the test');

Solution

// solution required