60 lines
1.0 KiB
Markdown
Raw Normal View History

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