mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2025-12-20 10:38:17 -05:00
976 B
976 B
id, title, challengeType, videoUrl, forumTopicId, dashedName
| id | title | challengeType | videoUrl | forumTopicId | dashedName |
|---|---|---|---|---|---|
| cf1111c1c11feddfaeb4bdef | Eine Zahl von einer anderen mit JavaScript subtrahieren | 1 | https://scrimba.com/c/cP3yQtk | 18314 | subtract-one-number-from-another-with-javascript |
--description--
Wir können auch eine Zahl von einer anderen subtrahieren.
JavaScript verwendet das Symbol - für die Subtraktion.
Beispiel
const myVar = 12 - 6;
myVar würde den Wert 6 haben.
--instructions--
Ändere die 0 so, dass die Differenz 12 ist.
--hints--
The variable difference should be equal to 12.
assert(difference === 12);
Du solltest nur eine Zahl von 45 abziehen.
assert(/difference=45-33;?/.test(__helpers.removeWhiteSpace(code)));
--seed--
--after-user-code--
(function(z){return 'difference = '+z;})(difference);
--seed-contents--
const difference = 45 - 0;
--solutions--
const difference = 45 - 33;