mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2025-12-20 10:38:17 -05:00
952 B
952 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/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;