2018-10-10 18:03:03 -04:00
---
id: cf1231c1c11feddfaeb5bdef
title: Multiply Two Numbers with JavaScript
challengeType: 1
2019-08-28 16:26:13 +03:00
videoUrl: https://scrimba.com/c/cP3y3Aq
forumTopicId: 18243
2018-10-10 18:03:03 -04:00
localeTitle: Умножить два числа с помощью JavaScript
---
## Description
2019-08-28 16:26:13 +03:00
< section id = 'description' >
Мы также можем умножить одно число на другое. JavaScript использует символ < code > *< / code > для умножения двух чисел. < p > < strong > пример< / strong > < / p > < blockquote > myVar = 13 * 13; // присвоено 169 < / blockquote >
< / section >
2018-10-10 18:03:03 -04:00
## Instructions
2019-08-28 16:26:13 +03:00
< section id = 'instructions' >
Измените < code > 0< / code > чтобы продукт равнялся < code > 80< / code > .
< / section >
2018-10-10 18:03:03 -04:00
## Tests
< section id = 'tests' >
```yml
tests:
2019-08-28 16:26:13 +03:00
- text: Make the variable < code > product</ code > equal 80
testString: assert(product === 80);
- text: Use the < code > *</ code > operator
testString: assert(/\*/.test(code));
2018-10-10 18:03:03 -04:00
```
< / section >
## Challenge Seed
< section id = 'challengeSeed' >
< div id = 'js-seed' >
```js
var product = 8 * 0;
```
< / div >
2019-08-28 16:26:13 +03:00
### After Tests
2018-10-10 18:03:03 -04:00
< div id = 'js-teardown' >
```js
2019-08-28 16:26:13 +03:00
(function(z){return 'product = '+z;})(product);
2018-10-10 18:03:03 -04:00
```
< / div >
< / section >
## Solution
< section id = 'solution' >
```js
2019-08-28 16:26:13 +03:00
var product = 8 * 10;
2018-10-10 18:03:03 -04:00
```
2019-08-28 16:26:13 +03:00
2018-10-10 18:03:03 -04:00
< / section >