DEV Community

Discussion on: Loops in JavaScript with examples

Collapse
 
armn profile image
armn

Great read, thanks! You have a small typo though:

for (let key on object) {
 //code in the loop
}

should be "let key of object" :)

Collapse
 
mugas profile image
Ricardo Moreira

Thank you for the heads up :)