---
title: "Discussion on \"JavaScript Arrays: Explain Like I'm Five\" | Hashnode"
description: "Discussion on \"JavaScript Arrays: Explain Like I'm Five\". This post covers what arrays are, how to create them, and a few array methods that are commonly use."
url: "https://hashnode.com/posts/javascript-arrays-explain-like-im-five/619b8103b8da183c37f50c26"
---

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

Discussion

# [JavaScript Arrays: Explain Like I'm Five](https://sumudusiriwardana.hashnode.dev/javascript-arrays-explain-like-im-five?utm_source=hashnode&utm_medium=feed)

This post covers what arrays are, how to create them, and a few array methods that are commonly use.

Nov 22, 2021 · 10 min read · sumudusiriwardana.hashnode.dev  
Updated Dec 29, 2021  
Read the article

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

## Written by

[Sumudu Siriwardana](https://hashnode.com/@sumudusiriwardana)

@sumudusiriwardana · Colombo, Sri Lanka

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

Project Manager

I'm a Project Manager. I help businesses and teams meet their goals and bring their ingenious ideas to life. While my main focus is on project management, I'm currently learning web development and really enjoying the coding journey.

## Responses 6

Markdown supported · ⌘↵ to post

[Chanel (InstincDev)](https://hashnode.com/@InstincDev)

[Nov 24, 2021](https://hashnode.com/posts/javascript-arrays-explain-like-im-five/619b8103b8da183c37f50c26/comment/619ea06df015481b2669bfaa)

Star Wars and Arrays! Great Job Sumudu!!

[Sumudu Siriwardana](https://hashnode.com/@sumudusiriwardana)

[Nov 26, 2021](https://hashnode.com/posts/javascript-arrays-explain-like-im-five/619b8103b8da183c37f50c26/comment/619ea06df015481b2669bfaa#reply-61a08ada9829fb749bcbfa6c)

Thank you, Chanel! 😊

[Eleftheria Batsou](https://hashnode.com/@eleftheriabatsou)

[Nov 23, 2021](https://hashnode.com/posts/javascript-arrays-explain-like-im-five/619b8103b8da183c37f50c26/comment/619cbf6006cdc0324d914304)

Excellent writing [Sumudu Siriwardana](https://hashnode.com/@sumudusiriwardana) 👏

Thank you for providing so much value!!

[Sumudu Siriwardana](https://hashnode.com/@sumudusiriwardana)

[Nov 26, 2021](https://hashnode.com/posts/javascript-arrays-explain-like-im-five/619b8103b8da183c37f50c26/comment/619cbf6006cdc0324d914304#reply-61a08ac0e6a8de74213248ee)

Thank you, Eleftheria! 😊

[Livia Hooson](https://hashnode.com/@PoppyWales)

[Nov 23, 2021](https://hashnode.com/posts/javascript-arrays-explain-like-im-five/619b8103b8da183c37f50c26/comment/619c67413d02a57359808ff1)

I came to JavaScript from a Python background and in Python, we have the count method of the list class, what it does is that, it takes a parameter and returns the number of times the parameter appears in the array. So how to do that in JavaScript?

[Sumudu Siriwardana](https://hashnode.com/@sumudusiriwardana)

[Nov 26, 2021](https://hashnode.com/posts/javascript-arrays-explain-like-im-five/619b8103b8da183c37f50c26/comment/619c67413d02a57359808ff1#reply-61a08a9be6a8de74213248da)

Hi Livia, this answer might help you 😊

[stackoverflow.com/a/6121234](https://stackoverflow.com/a/6121234)

[Ahnaf Ahamed](https://hashnode.com/@ahnaf)

[Nov 23, 2021](https://hashnode.com/posts/javascript-arrays-explain-like-im-five/619b8103b8da183c37f50c26/comment/619c6097f0e6cf143c11deae)

A refresher on Js arrays for me! Awesome article

[Sumudu Siriwardana](https://hashnode.com/@sumudusiriwardana)

[Nov 23, 2021](https://hashnode.com/posts/javascript-arrays-explain-like-im-five/619b8103b8da183c37f50c26/comment/619c6097f0e6cf143c11deae#reply-619c8f09f0e6cf143c11e2e9)

Thank you, Ahnaf! 😊

[Akebu](https://hashnode.com/@akebu6)

[Nov 22, 2021](https://hashnode.com/posts/javascript-arrays-explain-like-im-five/619b8103b8da183c37f50c26/comment/619bbe7183f48a50ad99a1e7)

Great article Sumudu, you explained what an array in such simple terms🤗

[Sumudu Siriwardana](https://hashnode.com/@sumudusiriwardana)

[Nov 23, 2021](https://hashnode.com/posts/javascript-arrays-explain-like-im-five/619b8103b8da183c37f50c26/comment/619bbe7183f48a50ad99a1e7#reply-619c42008c676073bc05f8eb)

Thank you, Akebu! Glad to hear that! 😊

[Hassib Moddasser](https://hashnode.com/@hassibmoddasser)

[Nov 22, 2021](https://hashnode.com/posts/javascript-arrays-explain-like-im-five/619b8103b8da183c37f50c26/comment/619b836983f48a50ad999bf1)

Well explained!

Thank you, Sumudu!

[Sumudu Siriwardana](https://hashnode.com/@sumudusiriwardana)

[Nov 22, 2021](https://hashnode.com/posts/javascript-arrays-explain-like-im-five/619b8103b8da183c37f50c26/comment/619b836983f48a50ad999bf1#reply-619b84be83f48a50ad999c35)

Thank you, I'm glad to hear that! 😊
