Functional JavaScript

suggest change

Remarks

Functional programming builds programs from functions, with a preference for immutable data. The aim is code that is easier to reuse and follow.

JavaScript is not a purely functional language. It can still be used that way: functions are values, they can take and return other functions, closures capture bindings, and arrays have map, reduce, and filter. Immutability is a discipline, not something the language enforces. const prevents reassignment, not mutation of an object.

Higher-Order Functions

Identity monad

Pure functions

Accepting functions as arguments

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents