Experience Share
80 views0 likes

Arrow Function and Arrays

Offor Janefrances
November 8, 2025
3 months ago

Continuation of function - Arrow function.

An arrow function is a concise way to define small, single-purpose functions in JavaScript.

Arrow Function Structure;

Const AddNum= ( ) => {
}

Now, Let's look into Arrays and Array Methods.

An Array is a list-like structure that stores multiple values in a single variable. Each item in the array has an index, starting from 0.

Also, an array is a data structure that stores a collection of elements, each identified by an index or key.

Array Methods:

  1. Push: Adding elements to the end of the array (e.g.array.push(element)).

  2. Pop: Removing the last element from the array (e.g. array.pop()).

  3. Shift: Removing the first element from the array (e.g., array.shift()).

  4. map(): Creates a new array with the results of applying a function to each element

  5. filter()*: Creates a new array with elements that pass a test.

  6. reduce()*: Applies a function to each element, accumulating a value.

  7. forEach(): Iterates over the array, executing a function for each element.

Benefits of Arrays

  1. Efficient data storage: Arrays provide a compact way to store collections of data.

  2. Fast access: Arrays allow for fast access to elements using their index.

  3. Flexible: Arrays can be used in a variety of contexts, from simple data storage to complex data processing.

Last updated: February 4, 2026

Written by: Offor Janefrances

More Articles

Deep Technology's

We are on an unwavering mission to be Nigeria's most loved software company, helping people discover new problem-solving strategies to solve problems around the globe.

NO 33 Democracy Crescent, Gaduwa Estate Gudu,Abuja FCT, Nigeria

© 2026 Deep Technology's. All rights reserved.