Home
Topics
Practice
Roadmap
DSA Tracker
Code Editor
Tech Blogs
More
Sign in
Get started
Loading question...
Feedback
Array Methods: map, filter, reduce
Medium
00:00
0 users online
Share
Description
Solution
Submissions
Discussion
Use modern array methods to transform data.
Sample Input:
[1, 2, 3, 4, 5]
Sample Output:
18
Hints
Hint 1
Use filter() to get even numbers
Hint 2
Use map() to double them
Hint 3
Use reduce() to sum them up
Code Editor
Reset
Run
Save
Loading...