このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン | ||
js:iteration_protocols [2021/07/12 13:23] tanaka |
js:iteration_protocols [2021/07/12 13:38] (現在) tanaka [ジェネレーター] |
||
---|---|---|---|
行 104: | 行 104: | ||
for (let year of genLeapYear(2000)) { | for (let year of genLeapYear(2000)) { | ||
- | console.log(year); | ||
if(year > 2100) break; | if(year > 2100) break; | ||
+ | console.log(year); | ||
} | } | ||
</ | </ |