---
title: "Comment by Livia Hooson on \"JavaScript Arrays: Explain Like I'm Five\" | Hashnode"
description: "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"
url: "https://hashnode.com/posts/javascript-arrays-explain-like-im-five/619b8103b8da183c37f50c26/comment/619c67413d02a57359808ff1"
---

[Discussion](https://hashnode.com/posts/javascript-arrays-explain-like-im-five/619b8103b8da183c37f50c26)

Comment [JavaScript Arrays: Explain Like I'm Five](https://hashnode.com/posts/javascript-arrays-explain-like-im-five/619b8103b8da183c37f50c26)

[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)
