FireEdgeX
0
All tracksJavaScript

LESSON 04 ยท JAVASCRIPT

Loops and repetition

Loops repeat a block so the same work does not need to be copied.

5 min readIn progress

THE IDEA

Understand the concept

A loop repeats instructions while a rule or iteration says there is work to do. A for loop is a good fit for a counted range; always make progress toward its stopping condition to avoid an accidental infinite loop.

WORKED EXAMPLE

See it in context

Example