Files
freeCodeCamp/curriculum/challenges/german/02-javascript-algorithms-and-data-structures/basic-javascript/multiply-two-decimals-with-javascript.md
freeCodeCamp's Camper Bot e6b05ee25d chore(i18n,learn): processed translations (#54537)
Co-authored-by: Naomi <nhcarrigan@gmail.com>
2024-04-26 12:26:37 +07:00

923 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(__helpers.removeJSComments(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;