---
title: "Arrays in JavaScript"  
description: "Arrays in JavaScript"  
author: "Anonymous User"  
published: 2018-07-11  
updated: 2018-07-11  
canonical: https://www.mindstick.com/forum/34608/arrays-in-javascript  
category: "web development"  
tags: ["web development", "javascript"]  
reading_time: 1 minute  

---

# Arrays in JavaScript

How to write [Arrays](https://www.mindstick.com/articles/11955/arrays-and-its-limitations) in [JavaScript](https://www.mindstick.com/articles/874/how-to-create-watermark-text-for-textbox-by-using-javascript) ?

## Replies

### Reply by Prakash nidhi Verma

Arrays in JavaScript :

array is single variable in javascript its used to store different elements. we store list of elements and access them by a single variable. most languages where array is a reference to the multiple variable, in JavaScript array is a single variable that stores multiple elements.

![Arrays in JavaScript](https://www.mindstick.com/mindstickforums/50248496-b071-477d-84fd-a0f728a7166d/images/dd0ea08d-448a-4475-877b-9dcaa4d12983.png)\

![Arrays in JavaScript](https://www.mindstick.com/mindstickforums/50248496-b071-477d-84fd-a0f728a7166d/images/144710ff-75b6-4245-8d27-b877eaff0266.png)

![Arrays in JavaScript](https://www.mindstick.com/mindstickforums/50248496-b071-477d-84fd-a0f728a7166d/images/2aac70aa-9bac-45ba-8fb0-c8b7ddca931b.png)

\

![Arrays in JavaScript](https://www.mindstick.com/mindstickforums/50248496-b071-477d-84fd-a0f728a7166d/images/8890db82-2580-473c-95fe-b43f8d89274e.png)

Length property of an Array

\

![Arrays in JavaScript](https://www.mindstick.com/mindstickforums/50248496-b071-477d-84fd-a0f728a7166d/images/31da14f0-eb92-4f92-83d3-80616065cc7f.png)\

\


---

Original Source: https://www.mindstick.com/forum/34608/arrays-in-javascript

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
