---
title: "Discussion on \"different ways to iterate over an array JavaScript\" | Hashnode"
description: "Discussion on \"different ways to iterate over an array JavaScript\". different ways to iterate over an array | how to show an array values in JavaScript | JavaScript array methods"
url: "https://hashnode.com/posts/different-ways-to-iterate-over-an-array-javascript/6273e8995ac8834093048da1"
---

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

Discussion

# [different ways to iterate over an array JavaScript](https://abdelmalek.hashnode.dev/different-ways-to-iterate-over-an-array-javascript?utm_source=hashnode&utm_medium=feed)

different ways to iterate over an array | how to show an array values in JavaScript | JavaScript array methods

May 5, 2022 · 3 min read · abdelmalek.hashnode.dev  
Updated May 22, 2022  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#arrays](https://hashnode.com/tag/arrays)
-   [#html5](https://hashnode.com/tag/html5)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#css](https://hashnode.com/tag/css)

## Written by

[Abdelmalek Ennani](https://hashnode.com/@Abdelmalek)

@Abdelmalek · Casablanca, Morocco

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

IT 🇸​🇹🇺🇩​🇪🇳🇹🙋|🇫​🇷​🇴🇳🇹 🇪🇳🇩 enthusiast 🔥 | 🇯🇦🇻​🇦​🇸​🇨​🇷🇮🇵​🇹 💖

Hi everyone 👋 , My name is Abdelmalek Ennani web developer and software engineering student🎒. I write about web development💻🕸️

## Responses 1

Markdown supported · ⌘↵ to post

[Kam Lasater](https://hashnode.com/@kamlasater)

[May 6, 2022](https://hashnode.com/posts/different-ways-to-iterate-over-an-array-javascript/6273e8995ac8834093048da1/comment/6274f32603d58d566cb07fc9)

A few other options that start to move from directly iterating to manipulation of the data.

```
let arr = [100 , 200 , 300 , 400 , 500];
arr.map((v) => {console.log(v)});
arr.filter((v) => {console.log(v)})
arr.reduce((a,v) => {console.log(v)},{})
```

[Abdelmalek Ennani](https://hashnode.com/@Abdelmalek)

[May 6, 2022](https://hashnode.com/posts/different-ways-to-iterate-over-an-array-javascript/6273e8995ac8834093048da1/comment/6274f32603d58d566cb07fc9#reply-62750b1b50c6035691e2a807)

Thanks for sharing 🙏. Actually I was planning to make an other post to explain them
