---
title: "Discussion on \"JavaScript: Anatomy of Loops.\" | Hashnode"
description: "Discussion on \"JavaScript: Anatomy of Loops.\". In JavaScript, just as in other programming languages, we use loops to read or access the items of a collection. The collection can be an array or an object. Every time the loop statement cycles through the items in a collection, we call it an iterat..."
url: "https://hashnode.com/posts/javascript-anatomy-of-loops/62a76800ddf27ef9ab05de60"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [JavaScript: Anatomy of Loops.](https://c-akunne.hashnode.dev/javascript-anatomy-of-loops?utm_source=hashnode&utm_medium=feed)

In JavaScript, just as in other programming languages, we use loops to read or access the items of a collection. The collection can be an array or an object. Every time the loop statement cycles through the items in a collection, we call it an iterat...

Jun 13, 2022 · 6 min read · c-akunne.hashnode.dev  
Updated Jun 27, 2022  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#beginners](https://hashnode.com/tag/beginners)
-   [#css](https://hashnode.com/tag/css)
-   [#html5](https://hashnode.com/tag/html5)
-   [#loops](https://hashnode.com/tag/loops)

## Written by

[Chidi Akunne](https://hashnode.com/@Thegodkind)

@Thegodkind

  
[View profile](https://hashnode.com/@Thegodkind)

I am a Cloud Engineer.

## Responses 1

Markdown supported · ⌘↵ to post

[Olúwásetèmi Ojo](https://hashnode.com/@setemiojo)

[Jun 27, 2022](https://hashnode.com/posts/javascript-anatomy-of-loops/62a76800ddf27ef9ab05de60/comment/62b9e864f2e6c7d70c1244e1)

The code snippet under the for in loop is not correct.

[Chidi Akunne](https://hashnode.com/@Thegodkind)

[Jun 27, 2022](https://hashnode.com/posts/javascript-anatomy-of-loops/62a76800ddf27ef9ab05de60/comment/62b9e864f2e6c7d70c1244e1#reply-62b9f3313f3c29d732650b81)

Updated boss. Thanks for pointing it out.
