Power up the array creation in JavaScript

The array is an ordered collection of objects or primitive types. It’s hard to imagine an application that doesn’t use this data structure.
Working with arrays consists in the following phases:

  1. Initialize the array and setup the initial elements
  2. Access the array elements by index
  3. Add new elements
  4. Remove existing elements

source: Dmitri Pavlutin