0 8

BIT251 ยท 0 ยท 5 marks

How array is defined in JavaScript? Illustrate with example.

How array is defined in JavaScript? Illustrate with example. [5]

Web Technology IChapter 7: JavaScript FundamentalsJavaScript arrays definition and usage

An array in JavaScript is a special type of object used to store multiple values in a single variable. Arrays are ordered collections of data where each element is accessed by its index (starting from 0). JavaScript arrays are dynamic (can grow or shrink in size) and can hold values of different ...