Files
freeCodeCamp/curriculum/challenges/portuguese/02-javascript-algorithms-and-data-structures/basic-javascript/divide-one-number-by-another-with-javascript.md
Nicholas Carrigan (he/him) c4fd49e5b7 chore: manual translations (#42811)
2021-07-10 09:53:54 +05:30

874 B

id, title, challengeType, videoUrl, forumTopicId, dashedName
id title challengeType videoUrl forumTopicId dashedName
cf1111c1c11feddfaeb6bdef Divida Um Número por Outro com JavaScript 1 https://scrimba.com/c/cqkbdAr 17566 divide-one-number-by-another-with-javascript

--description--

Nós também podemos dividir um número por outro.

JavaScript usa o símbolo / para divisão.

Exemplo

myVar = 16 / 2;

myVar agora possui o valor 8.

--instructions--

Altere 0 para que a variável quotient seja igual a 2.

--hints--

A variável quotient deve ser igual a 2.

assert(quotient === 2);

Você deve usar o 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;