The arrays in JavaScript

The arrays are, as in other languages, widely used in JavaScript but unlike with those languages, in JS arrays can contain any type of data.

Conversion methods (toLocaleString(), toString(), valueOf(), join())

As with objects, arrays have same methods...

Stack methods (push(), pop())

One of the key features of arrays is that they act like a structure of stacked data.

Queue methods (shift(), unshift())

The queue methods are similar to stack methods except that instead...

Re-ordering methods (reverse(), sort())

Two methods might be used to re-order items in an array; these are reverse() and sort()

Manipulation methods (concat(), slice(), splice())

There are a few methods used for data manipulation in an array.