Files
freeCodeCamp/curriculum/challenges/italian/02-javascript-algorithms-and-data-structures/basic-javascript/divide-one-decimal-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

931 B

id, title, challengeType, videoUrl, forumTopicId, dashedName
id title challengeType videoUrl forumTopicId dashedName
bd7993c9ca9feddfaeb7bdef Dividere un decimale per un altro con JavaScript 1 https://scrimba.com/c/cBZe9AW 18255 divide-one-decimal-by-another-with-javascript

--description--

Ora dividiamo un decimale per un altro.

--instructions--

Modifica 0.0 in modo che quotient sia uguale a 2.2.

--hints--

La variabile quotient dovrebbe essere uguale a 2.2

assert(quotient === 2.2);

Dovresti usare l'operatore / per dividere 4.4 per 2

assert(/4\.40*\s*\/\s*2\.*0*/.test(code));

La variabile quotient deve essere assegnata solo una volta

assert(code.match(/quotient/g).length === 1);

--seed--

--after-user-code--

(function(y){return 'quotient = '+y;})(quotient);

--seed-contents--

var quotient = 0.0 / 2.0; // Change this line

--solutions--

var quotient = 4.4 / 2.0;