Functional JavaScript
suggest changeRemarks
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.
Accepting functions as arguments
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents