mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-04-11 16:00:12 -04:00
1006 B
1006 B
id, title, challengeType, videoUrl, forumTopicId, dashedName
| id | title | challengeType | videoUrl | forumTopicId | dashedName |
|---|---|---|---|---|---|
| cf1111c1c11feddfaeb6bdef | JavaScript에서 하나의 숫자를 다른 숫자로 나누기 | 1 | https://scrimba.com/c/cqkbdAr | 17566 | divide-one-number-by-another-with-javascript |
--description--
한 숫자를 다른 숫자로 나누는 것도 가능합니다.
JavaScript에서는 나누기 기호로 /를 사용합니다.
예:
const myVar = 16 / 2;
myVar의 값은 이제 8을 갖습니다.
--instructions--
0를 변경해서, quotient(몫) 이 2와 같도록 해주세요.
--hints--
변수 quotient의 값이 2와 같아야 합니다.
assert(quotient === 2);
/ 연산자를 사용해야 합니다.
assert(/\d+\s*\/\s*\d+/.test(__helpers.removeJSComments(code)));
--seed--
--after-user-code--
(function(z){return 'quotient = '+z;})(quotient);
--seed-contents--
const quotient = 66 / 0;
--solutions--
const quotient = 66 / 33;