Menu Home

for of

osbo.com | JS | for of

for of is a loop that iterates through iteratable objects.

Syntax

for (variable of iteratable) {
    code
}

Examples

Internal

do while

for

for in

while

External

Mozilla Developer Network