Posts

Showing posts from July, 2023

Java Script Array Methods

Array is a collection of data of the same type, data is stored in the contiguous memory locations, arrays are accessed using index, the variable for which the array is assigned will be pointing to the address of first value of array, location of any item can be calculated quickly, thus accessing an array using an index is quick. Let us see some array methods in javascript. Array methods can be mutable or immutable Mutable meaning original array is modified Immutable meaning method will return a new array without modifying original array Let's be little animated, let's take array with animals as values.