---
title: "Discussion on \"Array and all its methods in Javascript\" | Hashnode"
description: "Discussion on \"Array and all its methods in Javascript\". The Array in Javascript helps store a collection of multiple items under a single variable name and has different methods to perform various operations.\nHow to initialize an array?\nlet name = [\"Mike\",\"Samuel\",\"Robert\"];\n\nDifferent array methods in Js..."
url: "https://hashnode.com/posts/array-and-all-its-methods-in-javascript/63a694b923ec72997f359cff"
---

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

Discussion

# [Array and all its methods in Javascript](https://ajaychauhan.hashnode.dev/array-and-all-its-methods-in-javascript?utm_source=hashnode&utm_medium=feed)

The Array in Javascript helps store a collection of multiple items under a single variable name and has different methods to perform various operations. How to initialize an array? let name = \["Mike","Samuel","Robert"\]; Different array methods in Js...

Dec 24, 2022 · 9 min read · ajaychauhan.hashnode.dev  
Read the article

-   [#js](https://hashnode.com/tag/js)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#array-methods](https://hashnode.com/tag/array-methods)
-   [#iwritecode-hiteshchoudhary-lco-markdown-git-github](https://hashnode.com/tag/iwritecode-hiteshchoudhary-lco-markdown-git-github)
-   [#iwritecode](https://hashnode.com/tag/iwritecode)

## Written by

[Ajay Chauhan](https://hashnode.com/@lazycoder28)

@lazycoder28 · Delhi,India

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

## Responses 1

Markdown supported · ⌘↵ to post

[Dean Tarisai](https://hashnode.com/@deantarisai)

[Dec 24, 2022](https://hashnode.com/posts/array-and-all-its-methods-in-javascript/63a694b923ec72997f359cff/comment/63a6a102b1011ed9ec6cd29f)

Yesterday I failed a JS interview question about flattening arrays. Had forgotten about the Array.flat() method. An informative and memory jogging post.

Keep it up!
