Language - Loop (For, While) - (Break, Continue)

Card Puncher Data Processing

About

Repeating a set of actions until a certain condition (predicate) fails is the job of programming loops;

loops can take different forms, but they all satisfy this basic behavior.

A loop includes:

Each time the loop block executes, that’s called an iteration. See Design Pattern - (Iterator|Cursor)

The only practical difference between these loops is whether the conditional is tested:

  • before the first iteration (while)
  • or after the first iteration (do.. while).

Loop Control Statement

  • The break statement stop a loop.
  • The continue statement goes to the next iteration without running the code below it.

Infinite

See Infinite loop on the CPU





Discover More
Bash Liste Des Attaques Ovh
Bash - While

This article is dedicated to the while syntax in Bash. where: : is the no-op command; its exit status is always 0 The command: lists the file with the ls executable (ls -l) pipe the...
Card Puncher Data Processing
Grammar - For

The for statement is a loop construct.
How to render a List of React Elements (Component, )?

... This page is Loop in React and Jsx. Example with Pure Javascript map is the Reference/Global_Objects/Array/mapArray Map function with an Arrow function as argument Example in React ...



Share this page:
Follow us:
Task Runner