Software Engineer

In a nutshell

map() is a built-in function of Array in JavaScript. It helps us iterate on an array, calls a provided callback() on each element, and returns a new array with the new results.

Parameters

map() accepts as parameters
- current element — The current element being processed in the array.
- the…

Array is one of the most commonly used data structure in the computer science world. If you ever had used a list of items such as todo list or playlist or a contacts list on your phone you most probably used an Array.

An array is a data structure for…

Maayan Savir

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store