Files
freeCodeCamp/curriculum/challenges/espanol/02-javascript-algorithms-and-data-structures/basic-javascript/multiply-two-decimals-with-javascript.md
camperbot 0432ec995f chore(i18n,learn): processed translations (#41387)
* chore(i8n,learn): processed translations

* fix: remove extra space

Co-authored-by: Nicholas Carrigan (he/him) <nhcarrigan@gmail.com>

Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
Co-authored-by: Randell Dawson <5313213+RandellDawson@users.noreply.github.com>
Co-authored-by: Nicholas Carrigan (he/him) <nhcarrigan@gmail.com>
2021-03-07 08:15:14 -08:00

864 B

id, title, challengeType, videoUrl, forumTopicId, dashedName
id title challengeType videoUrl forumTopicId dashedName
bd7993c9c69feddfaeb7bdef Multiplica dos números decimales con JavaScript 1 https://scrimba.com/c/ce2GeHq 301173 multiply-two-decimals-with-javascript

--description--

En JavaScript, también puedes realizar cálculos con números decimales, al igual que con números enteros.

Multipliquemos dos números decimales para obtener su producto.

--instructions--

Cambia el 0.0 para que el producto sea igual a 5.0.

--hints--

La variable product debe ser igual a 5.0.

assert(product === 5.0);

Debes utilizar el operador *

assert(/\*/.test(code));

--seed--

--after-user-code--

(function(y){return 'product = '+y;})(product);

--seed-contents--

var product = 2.0 * 0.0;

--solutions--

var product = 2.0 * 2.5;