1.0 KiB
1.0 KiB
id, title, challengeType, videoUrl, forumTopicId, dashedName
id | title | challengeType | videoUrl | forumTopicId | dashedName |
---|---|---|---|---|---|
cf1111c1c11feddfaeb4bdef | JavaScript で、ある数値から別の数値を引き算する | 1 | https://scrimba.com/c/cP3yQtk | 18314 | subtract-one-number-from-another-with-javascript |
--description--
ある数値から別の数値を引き算することもできます。
JavaScript では減算記号として -
を使用します。
例
const myVar = 12 - 6;
myVar
の値は 6
になります。
--instructions--
差が 12
になるように 0
を変更してください。
--hints--
変数 difference
は 12 に等しくなる必要があります。
assert(difference === 12);
45 から 1 つの数値だけを引いてください。
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;