Files
freeCodeCamp/curriculum/challenges/espanol/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

896 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(__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;