---
title: "Discussion on \"Arrays in JavaScript: A Cheat sheet for a developer\" | Hashnode"
description: "Discussion on \"Arrays in JavaScript: A Cheat sheet for a developer\". In JavaScript, an array is a collection of values or elements, stored in a single variable. Arrays can hold values of any data type, including numbers, strings, booleans, and objects.\nconst fruits = [\"mango\",\"orange\",\"peach\",\"apple\"];\n\nHere, fruits i..."
url: "https://hashnode.com/posts/arrays-in-javascript-a-cheat-sheet-for-a-developer/64188eae60bf225dbe804a25"
---

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

Discussion

# [Arrays in JavaScript: A Cheat sheet for a developer](https://manishkc.hashnode.dev/arrays-in-javascript-a-cheat-sheet-for-a-developer?utm_source=hashnode&utm_medium=feed)

In JavaScript, an array is a collection of values or elements, stored in a single variable. Arrays can hold values of any data type, including numbers, strings, booleans, and objects. const fruits = \["mango","orange","peach","apple"\]; Here, fruits i...

Mar 20, 2023 · 6 min read · manishkc.hashnode.dev  
Read the article

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

## Written by

[Manish KC](https://hashnode.com/@manishkc)

@manishkc

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
