How does JavaScript support functional programming?
The question is about JavaScript
Answer:
JavaScript is a functional language applied to the fact that functions are first-class. These functions can be assigned into variables, passed as arguments, and returned from other functions. JavaScript has lots of higher-order functions-map, filter, and reduce-which greatly help a developer’s code stay clean and expressive by descriptively explaining what is to happen to a collection of data in an expository manner.