![]() |
In JavaScript, an array is a data structure used to store multiple values of any data type sequentially. Arrays allow you to group together related data items under a single variable name. Each value in an array is called an element, and each element is accessed by its index, starting from 0. Example: Here, the variable Javascript
Output
[ 1, 2, 3, 4, 5 ] |
Reffered: https://www.geeksforgeeks.org
JavaScript |
Type: | Geek |
Category: | Coding |
Sub Category: | Tutorial |
Uploaded by: | Admin |
Views: | 14 |