An array is a special JavaScript object used to store multiple values in a single variable. Arrays allow storing values of different data types and provide built-in methods for efficient data manipulation.
An array stores multiple values in a single variable.
Array indexing starts from 0.
The preferred way to create arrays.
Arrays can also be created using new Array().
Arrays can contain other arrays.
> "[10,20,30,"Sathesh",null,true,40]"> "object"> "7"> "10"> "20"> "30"> "Sathesh"> "null"> "true"> "40"> "[[10,20,30],[40,50,60],[70,80,90]]"> "[10,20]"> "3x3 empty array"
Create using literal.
Print the array.
Use length property.
Iterate using for loop.
Create nested arrays.
Create using Array constructor.
Store student marks in an array.
A collection of values stored in one variable.
0
Literal and Constructor.
Yes.
Total elements.
Yes.
Array Literal.
array[0].
length-1
Built-in JavaScript Array object.
1. Index starts from?
2. Preferred creation?
3. Property for size?
4. 2D array contains?
5. Array literal uses?
Create and display an employee array.
