mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2025-12-20 10:38:17 -05:00
895 B
895 B
id, title, challengeType, videoUrl, forumTopicId, dashedName
| id | title | challengeType | videoUrl | forumTopicId | dashedName |
|---|---|---|---|---|---|
| bd7993c9c69feddfaeb7bdef | Multiplikation zweier Dezimalzahlen mit JavaScript | 1 | https://scrimba.com/c/ce2GeHq | 301173 | multiply-two-decimals-with-javascript |
--description--
In JavaScript kannst du auch Berechnungen mit Dezimalzahlen durchführen, ebenso wie mit ganzen Zahlen.
Jetzt multiplizieren wir zwei Dezimalzahlen miteinander, um ihr Produkt zu erhalten.
--instructions--
Ändere 0.0 so, dass das Produkt gleich 5.0 wird.
--hints--
Die Variable product sollte gleich 5.0 sein.
assert(product === 5.0);
Du solltest den Operator * verwenden
assert(/\*/.test(code));
--seed--
--after-user-code--
(function(y){return 'product = '+y;})(product);
--seed-contents--
const product = 2.0 * 0.0;
--solutions--
const product = 2.0 * 2.5;