What is functional programming?

Functional programming is a paradigm that treats functions as first-class citizens and emphasizes pure functions (no side effects), immutability, and declarative code. This approach is useful for building predictable, testable, and modular code.

Example: Functions that always return the same output for the same input.

const add = (a, b) => a + b;