for in

for in is a loop that iterates through the names of an object.

Syntax

for(variable in object)
{
    code
}

Examples

Name

Value

Internal

do while

for

for of

while

External

Mozilla Developer Network

Home Menu