---
title: "Discussion on \"Built-in Array Methods-map(), filter() and reduce()\" | Hashnode"
description: "Discussion on \"Built-in Array Methods-map(), filter() and reduce()\". Introduction\nAn array in JavaScript is a type of global object used to store data between square brackets, separated by commas. It is a variable which can hold more than one value at a time. Arrays are zero-based, which means that they use numbered i..."
url: "https://hashnode.com/posts/built-in-array-methods-map-filter-and-reduce/606eb92dd741af6659cf87c8"
---

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

Discussion

# [Built-in Array Methods-map(), filter() and reduce()](https://qnnakwue.hashnode.dev/built-in-array-methods-map-filter-and-reduce?utm_source=hashnode&utm_medium=feed)

Introduction An array in JavaScript is a type of global object used to store data between square brackets, separated by commas. It is a variable which can hold more than one value at a time. Arrays are zero-based, which means that they use numbered i...

Apr 8, 2021 · 5 min read · qnnakwue.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#arrays](https://hashnode.com/tag/arrays)
-   [#array-methods](https://hashnode.com/tag/array-methods)

## Written by

[QUEEN](https://hashnode.com/@qnnakwue)

@qnnakwue · Lagos, Nigeria

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

Software developer

Queen is a JavaScript developer and a technical writer. She writes about the fundamentals of JavaScript, Node.js and tutorials on building projects. Passionate about learning and building awesome stuffs.

## Responses 2

Markdown supported · ⌘↵ to post

[Blake Wight](https://hashnode.com/@NardBagel)

[Apr 8, 2021](https://hashnode.com/posts/built-in-array-methods-map-filter-and-reduce/606eb92dd741af6659cf87c8/comment/606f3b17d741af6659cf93c5)

Just a few things:

arrays need commas between values, not semi-colons.

The reduce function might be more clear with an initial value, and maybe another example. That one can be hard for people.

I did learn how to use map on a string though! That was something new for me. Thanks!

[QUEEN](https://hashnode.com/@qnnakwue)

[Apr 8, 2021](https://hashnode.com/posts/built-in-array-methods-map-filter-and-reduce/606eb92dd741af6659cf87c8/comment/606f3b17d741af6659cf93c5#reply-606f4ae3d741af6659cf9549)

Your points are noted Blake. Thanks much for the review!

[Tracy Nuwagaba](https://hashnode.com/@tracycod3r)

[Apr 8, 2021](https://hashnode.com/posts/built-in-array-methods-map-filter-and-reduce/606eb92dd741af6659cf87c8/comment/606ed2aed741af6659cf8a72)

Awesome article
