-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path41 Map-Filter-Reduce.html
26 lines (21 loc) · 1.16 KB
/
41 Map-Filter-Reduce.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<!DOCTYPE html>
<html lang="en">
<head><title>Map-Filter_Reduce Intro</title>
</head>
<body>
<!-- visit: https://youtu.be/zdp0zrpKzIE and https://www.freecodecamp.org/news/javascript-map-reduce-and-filter-explained-with-examples/
->This Program contains intro of map() filter() and reduce() in JS
->map() filter() and reduce(): are higher order functions in JS
Note: {higher order functions: a function which takes another function as an argument or
returns a function is known as a higher order function}
->Map, reduce, and filter are all array methods in JavaScript. Each one will iterate
over an array and perform a transformation or computation.
Each will return a new array based on the result of the function.
Important:->The map(), reduce() and filter() are array functions that transform the array according
to the applied function and return the updated array. They are used to write simple,
short and clean codes for modifying an array instead of using the loops.
-->
<script>
</script>
</body>
</html>