1.3 KiB
1.3 KiB
id | challengeType | videoUrl | localeTitle |
---|---|---|---|
5900f36e1000cf542c50fe80 | 5 | 问题1:3和5的倍数 |
Description
number
以下的3或5的倍数的总和。
Instructions
Tests
tests:
- text: <code>multiplesOf3and5(1000)</code>应该返回233168。
testString: assert.strictEqual(multiplesOf3and5(1000), 233168);
- text: <code>multiplesOf3and5(49)</code>应该返回543。
testString: assert.strictEqual(multiplesOf3and5(49), 543);
- text: <code>multiplesOf3and5(19564)</code>应该返回89301183。
testString: assert.strictEqual(multiplesOf3and5(19564), 89301183);
- text: 您的函数未使用我们的测试值返回正确的结果。
testString: assert.strictEqual(multiplesOf3and5(8456), 16687353);
Challenge Seed
function multiplesOf3and5(number) {
// Good luck!
return true;
}
multiplesOf3and5(1000);
Solution
// solution required
/section>