for

The for JS Iterations iterates a loop while the condition is true.

It is similar to a while statement but has different syntax.

Syntax

for(variable; condition; increment)
{
    code
}

Examples

do-while

for-await-of

for-in

for-of

while

European Computer Manufacturers Association (ECMA)

Home Menu