This Is What You Must Know About JS Arrays

Kritika Sharma
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] =

--

--

Kritika Sharma

Tech PM/Web Dev by profession, Learner by Passion. I write to promote financial literacy, share technical insights, and career advancement tips that I learn!:)