# Iterate over array / object

**URL:** <https://forum.codewithmosh.com/t/iterate-over-array-object/17037>\
**Category:** Uncategorized\
**Created:** [December 14, 2022, 6:59pm UTC](https://forum.codewithmosh.com/t/iterate-over-array-object/17037 "2022-12-14T18:59:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![YuriAmancio](https://avatars.discourse-cdn.com/v4/letter/y/e47c2d/32.png) [@YuriAmancio](https://forum.codewithmosh.com/u/YuriAmancio)\
**Post date:** [December 14, 2022, 6:59pm UTC](https://forum.codewithmosh.com/t/iterate-over-array-object/17037/1 "2022-12-14T18:59:22Z")

</div>

Hi there,  
anyone knows an easier explanation of what ITERATE OVER ARRAY / OBJECT means?  
Thanks

---

<div class="post-metadata">

**Author:** ![SAM](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/sam/32/167_2.png) [@SAM](https://forum.codewithmosh.com/u/SAM)\
**Post date:** [December 15, 2022, 7:58pm UTC](https://forum.codewithmosh.com/t/iterate-over-array-object/17037/2 "2022-12-15T19:58:39Z")

</div>

Repeat an operation with every element of an array / every property of an object.

---

<div class="post-metadata">

**Author:** ![jmrunkle](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/jmrunkle/32/3765_2.png) [@jmrunkle](https://forum.codewithmosh.com/u/jmrunkle)\
**Post date:** [December 16, 2022, 4:02am UTC](https://forum.codewithmosh.com/t/iterate-over-array-object/17037/3 "2022-12-16T04:02:18Z")

</div>

Or to put it in concrete terms, suppose we represent a line of students as an array. To “iterate over the array” would mean to go through each student and do something. For example, we could “iterate over the student array and print out their names” which would mean we print out the name of each student.
