Files
freeCodeCamp/curriculum/challenges/italian/02-javascript-algorithms-and-data-structures/basic-javascript/divide-one-number-by-another-with-javascript.md
camperbot b3af21d50f chore(i18n,curriculum): update translations (#42487)
* chore(i18n,curriculum): update translations

* chore: Italian to italian

Co-authored-by: Nicholas Carrigan <nhcarrigan@gmail.com>
2021-06-14 11:34:20 -07:00

60 lines
884 B
Markdown

---
id: cf1111c1c11feddfaeb6bdef
title: Dividere un numero per un altro con JavaScript
challengeType: 1
videoUrl: 'https://scrimba.com/c/cqkbdAr'
forumTopicId: 17566
dashedName: divide-one-number-by-another-with-javascript
---
# --description--
Possiamo anche dividere un numero per un altro.
JavaScript utilizza il simbolo `/` per la divisione.
**Esempio**
```js
myVar = 16 / 2;
```
`myVar` ora ha il valore `8`.
# --instructions--
Modifica lo `0` in modo che `quotient` sia uguale a `2`.
# --hints--
La variabile `quotient` dovrebbe essere uguale a 2.
```js
assert(quotient === 2);
```
Dovresti usare l'operatore `/`.
```js
assert(/\d+\s*\/\s*\d+/.test(code));
```
# --seed--
## --after-user-code--
```js
(function(z){return 'quotient = '+z;})(quotient);
```
## --seed-contents--
```js
var quotient = 66 / 0;
```
# --solutions--
```js
var quotient = 66 / 33;
```