mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2025-12-31 06:01:50 -05:00
* fix(curriculum): standradize links in curriculum * Data analiysis links * CIP links * fixed links in s-expressions * Update curriculum/challenges/english/01-responsive-web-design/basic-css/use-hex-code-for-specific-colors.md Co-authored-by: Ilenia <nethleen@gmail.com> * added space before target attribute * standarize external and .rock example links * wrap "check out the projects" around the links Co-authored-by: Ilenia <nethleen@gmail.com>
1.3 KiB
1.3 KiB
id, title, challengeType, videoUrl, forumTopicId, dashedName
| id | title | challengeType | videoUrl | forumTopicId | dashedName |
|---|---|---|---|---|---|
| cf1391c1c11feddfaeb4bdef | Create Decimal Numbers with JavaScript | 1 | https://scrimba.com/c/ca8GEuW | 16826 | create-decimal-numbers-with-javascript |
--description--
We can store decimal numbers in variables too. Decimal numbers are sometimes referred to as floating point numbers or floats.
Note: when you compute numbers, they are computed with finite precision. Operations using floating points may lead to different results than the desired outcome. If you are getting one of these results, open a topic on the freeCodeCamp forum.
--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--
const ourDecimal = 5.7;
// Only change code below this line
--solutions--
const myDecimal = 9.9;