--- id: 5900f37f1000cf542c50fe92 challengeType: 5 videoUrl: '' title: 问题19:计算星期日 --- ## Description
您将获得以下信息,但您可能更愿意为自己做一些研究。
## Instructions
## Tests
```yml tests: - text: 'countingSundays(1943, 1946)应该返回6。' testString: assert.strictEqual(countingSundays(1943, 1946), 6); - text: 'countingSundays(1995, 2000)应该返回9。' testString: assert.strictEqual(countingSundays(1995, 2000), 10); - text: 'countingSundays(1901, 2000)应该返回171。' testString: assert.strictEqual(countingSundays(1901, 2000), 171); ```
## Challenge Seed
```js function countingSundays(firstYear, lastYear) { // Good luck! return true; } countingSundays(1943, 1946); ```
## Solution
```js // solution required ``` /section>