File tree 1 file changed +8
-3
lines changed
1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -219,13 +219,18 @@ const isPassed = array.some(currentValue => {
219
219
220
220
## continue文 {#continue-statement}
221
221
222
- continue文は処理中の文をスキップして、そのループの` 条件式 ` と移行する制御文です。
223
- while、do-while、forの中で使い、実行中のループの` 条件式 ` へ制御を移します。
222
+ continue文は現在の反復処理を終了して、次の反復処理を行います。
223
+ continute文は、while、do-while、forの中で使うことができます。
224
+
225
+ たとえば、while文の処理中で` continue ` 文が実行されると、現在の反復処理はその時点で終了されます。
226
+ そして、次の反復処理で` 条件式 ` を評価するところからループが再開されます。
224
227
225
228
<!-- doctest:disable -->
226
229
``` js
227
230
while (条件式) {
231
+ // 実行される処理
228
232
continue ; // `条件式` へ
233
+ // これ以降の行は実行されません
229
234
}
230
235
```
231
236
@@ -235,7 +240,7 @@ while (条件式) {
235
240
{{book.console}}
236
241
[ import, continue-filter-even-example.js] ( src/continue/continue-filter-even-example.js )
237
242
238
- もちろん次のように、 偶数なら` results ` へ追加するという書き方も可能です 。
243
+ もちろん、次のように ` continue ` 文を使わずに「 偶数なら` results ` へ追加する」という書き方も可能です 。
239
244
240
245
<!-- doctest:disable -->
241
246
``` js
You can’t perform that action at this time.
0 commit comments