This includes certificates (where it does nothing), but does not include any translations.
1.1 KiB
1.1 KiB
id, title, challengeType, isHidden, videoUrl, forumTopicId
| id | title | challengeType | isHidden | videoUrl | forumTopicId |
|---|---|---|---|---|---|
| cf1111c1c11feddfaeb4bdef | Subtract One Number from Another with JavaScript | 1 | false | https://scrimba.com/c/cP3yQtk | 18314 |
Description
- symbol for subtraction.
Example
myVar = 12 - 6; // assigned 6
Instructions
0 so the difference is 12.
Tests
tests:
- text: The variable <code>difference</code> should be equal to 12.
testString: assert(difference === 12);
- text: You should only subtract one number from 45.
testString: assert(/difference=45-33;?/.test(code.replace(/\s/g, '')));
Challenge Seed
var difference = 45 - 0;
After Test
(function(z){return 'difference = '+z;})(difference);
Solution
var difference = 45 - 33;