Files
2021-10-27 21:47:35 +05:30

935 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--

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

--solutions--

const quotient = 4.4 / 2.0;