Understanding JavaScript's map() Array Method

Published: 11 September 2019
on channel: Zaiste Programming
2,918
72

Mapping is a process of transforming an input array by applying a function to each element of that array and producing a new array that contains results of that function invocation.

In JavaScript, the map() is a higher-order function defined as a method on the Array object that applies a given function to each element in the calling array.

Functional programming is a programming paradigm in which you build programs by composing functions. The computation is then the evaluation of those functions. Functional programming focuses on the usage of pure functions and on avoiding shared, mutable state. This programming paradigm is declarative. Functional code is usually more concise and easier to test.

In this mini series, we will embark on an exciting journey to learn a bit about functional programming by using JavaScript. Presented concepts will be mostly universal and applicable to other programming languages. This series is created with beginners and non-programmers in mind; don't worry, we will take it slowly!

Zaiste Weekly Newsletter: https://bit.ly/zaiste-weekly

#functional #javascript #filter


On this page of the site you can watch the video online Understanding JavaScript's map() Array Method with a duration of hours minute second in good quality, which was uploaded by the user Zaiste Programming 11 September 2019, share the link with friends and acquaintances, this video has already been watched 2,918 times on youtube and it was liked by 72 viewers. Enjoy your viewing!