Array in JavaScript
In JavaScript arrays are collection of multiple values by using a single variable.Arrays are index based,so that we can get array elements very easily by using index values.
In JavaScript we have multiple ways to create an array.
Array creation by using literals
We can declare arrays by using literals ,generally we use square brackets [] to denotes an array.
Array Creation By using Array class
We can create an array by using Array directly by using new keyword in javascript.
Array Creation By using Array Constructor
We can create an array by using Array constructor as pass the values as well inside the constructor only.