freeCodeCamp/curriculum/challenges/espanol/02-javascript-algorithms-an.../basic-javascript/divide-one-number-by-anothe...

881 B

id title challengeType videoUrl forumTopicId dashedName
cf1111c1c11feddfaeb6bdef Divide un número entre otro con JavaScript 1 https://scrimba.com/c/cqkbdAr 17566 divide-one-number-by-another-with-javascript

--description--

También podemos dividir un número entre otro.

JavaScript utiliza el símbolo / para la división.

Ejemplo

myVar = 16 / 2;

myVar ahora tiene el valor 8.

--instructions--

Cambia el 0 para que el quotient (cociente) sea igual a 2.

--hints--

La variable quotient debe ser igual a 2.

assert(quotient === 2);

Debes usar el operador /.

assert(/\d+\s*\/\s*\d+/.test(code));

--seed--

--after-user-code--

(function(z){return 'quotient = '+z;})(quotient);

--seed-contents--

var quotient = 66 / 0;

--solutions--

var quotient = 66 / 33;