Using array literal notation if you put a number in the square brackets it will return the number while using new array () if you pass a number to the constructor, you will get an array of that length. A javascript array has the following characteristics: First, an array can hold values of mixed types.

An array is an object type designed for storing data collections. Key characteristics of javascript arrays are: An array is a list of values, known as elements. Array elements are ordered Ò€¦ The array constructor is useful when you need to create arrays dynamically or with a specific length. However, be careful with numeric arguments Ò€ a single number creates an array of that length, while Ò€¦

The array constructor is useful when you need to create arrays dynamically or with a specific length. However, be careful with numeric arguments Ò€ a single number creates an array of that length, while Ò€¦