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

1.1 KiB

id, title, challengeType, videoUrl, forumTopicId
id title challengeType videoUrl forumTopicId
cf1391c1c11feddfaeb4bdef Create Decimal Numbers with JavaScript 1 https://scrimba.com/c/ca8GEuW 16826

--description--

We can store decimal numbers in variables too. Decimal numbers are sometimes referred to as floating point numbers or floats.

Note
Not all real numbers can accurately be represented in floating point. This can lead to rounding errors. Details Here.

--instructions--

Create a variable myDecimal and give it a decimal value with a fractional part (e.g. 5.7).

--hints--

myDecimal should be a number.

assert(typeof myDecimal === 'number');

myDecimal should have a decimal point

assert(myDecimal % 1 != 0);

--seed--

--after-user-code--

(function(){if(typeof myDecimal !== "undefined"){return myDecimal;}})();

--seed-contents--

var ourDecimal = 5.7;

// Only change code below this line

--solutions--

var myDecimal = 9.9;