Files
2021-10-27 21:47:35 +05:30

891 B

id, title, challengeType, videoUrl, forumTopicId, dashedName
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

const 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--

const quotient = 66 / 0;

--solutions--

const quotient = 66 / 33;