What is functional programming in JavaScript?
Functional programming is a style of programming that emphasizes functions, expressions, immutability, composition, and minimizing shared mutable state. JavaScript supports this style because functions are first-class values and can be passed, returned, and composed.