DEV Community

loading...

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 Author

Thank you for the heads up :)