Oliver Eyton-Williams f1c9b08cf3 fix(curriculum): add isHidden: false to challenges
This includes certificates (where it does nothing), but does not
include any translations.
2020-05-25 16:25:19 +05:30

1.1 KiB

id, title, challengeType, isHidden, videoUrl, forumTopicId
id title challengeType isHidden videoUrl forumTopicId
cf1111c1c11feddfaeb6bdef Divide One Number by Another with JavaScript 1 false https://scrimba.com/c/cqkbdAr 17566

Description

We can also divide one number by another. JavaScript uses the / symbol for division.

Example

myVar = 16 / 2; // assigned 8

Instructions

Change the 0 so that the quotient is equal to 2.

Tests

tests:
  - text: The variable <code>quotient</code> should be equal to 2.
    testString: assert(quotient === 2);
  - text: You should use the <code>/</code> operator.
    testString: assert(/\d+\s*\/\s*\d+/.test(code));

Challenge Seed

var quotient = 66 / 0;


After Test

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

Solution

var quotient = 66 / 33;