This Is What You Must Know About JS Arrays
4 min readFeb 9, 2021
Javascript Array Essential Methods Explained with Examples.
Arrays are the most commonly used data structure in any language. As we already know they’re special variables that can hold more than one value at a time. Javascript Arrays are no different, although, an essential thing to know about them is that Javascript Arrays are special kinds of Objects. Now, because of this, you can have variables of different types in the same Array. For instance,
arr[0] = cars; //cars = ['Bentley', 'Mustang']
arr[1] = Date.now;
arr[2] =…