Files
freeCodeCamp/curriculum/challenges/german/02-javascript-algorithms-and-data-structures/basic-javascript/divide-one-decimal-by-another-with-javascript.md
2023-03-31 18:48:49 +01:00

871 B

id, title, challengeType, videoUrl, forumTopicId, dashedName
id title challengeType videoUrl forumTopicId dashedName
bd7993c9ca9feddfaeb7bdef Dividieren einer Dezimalzahl durch eine andere mit JavaScript 1 https://scrimba.com/c/cBZe9AW 18255 divide-one-decimal-by-another-with-javascript

--description--

Dividieren wir nun eine Dezimalzahl durch eine andere.

--instructions--

Ändere 0.0, so dass quotient gleich 2.2 wird.

--hints--

Die Variable quotient sollte gleich 2.2 sein.

assert(quotient === 2.2);

Verwende den Operator /, um 4,4 durch 2 zu teilen.

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

Die Quotientenvariable sollte nur einmal zugewiesen werden

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

--seed--

--seed-contents--

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

--solutions--

const quotient = 4.4 / 2.0;