Oliver Eyton-Williams 0bd52f8bd1
Feat: add new Markdown parser (#39800)
and change all the challenges to new `md` format.
2020-11-27 10:02:05 -08:00

847 B

id, title, challengeType, videoUrl, forumTopicId
id title challengeType videoUrl forumTopicId
bd7993c9ca9feddfaeb7bdef Divide One Decimal by Another with JavaScript 1 https://scrimba.com/c/cBZe9AW 18255

--description--

Now let's divide one decimal by another.

--instructions--

Change the 0.0 so that quotient will equal to 2.2.

--hints--

The variable quotient should equal 2.2

assert(quotient === 2.2);

You should use the / operator to divide 4.4 by 2

assert(/4\.40*\s*\/\s*2\.*0*/.test(code));

The quotient variable should only be assigned once

assert(code.match(/quotient/g).length === 1);

--seed--

--after-user-code--

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

--seed-contents--

var quotient = 0.0 / 2.0; // Change this line

--solutions--

var quotient = 4.4 / 2.0;