re: Is JavaScript truly a functional language? VIEW POST

re: What is functional programming? In Wikipedia, "In computer science, functional programming is a programming paradigm where programs are construct...

Functional programming is sometimes treated as synonymous with purely functional programming, a subset of functional programming which treats all functions as deterministic mathematical functions, or pure functions.

When a pure function is called with some given arguments, it will always return the same result, and cannot be affected by any mutable state or other side effects. This is in contrast with impure procedures, common in imperative programming, which can have side effects (such as modifying the program's state or taking input from a user).

Code of Conduct Report abuse