or functions that can be returned from other functions as output. It is enough for a function to fulfill one of these conditions to be considered a higher-order function.
Higher-Order Functions allow to create convenient abstractions so that it is easier to reason about programs and their structure. In JavaScript there are many higher-order functions built in, one of them is the sort functions defined as a method on the Array object.
Functional programming is a programming paradigm in which you build programs by composing functions. The computation is then the evaluation of those functions. Functional programming focuses on the usage of pure functions and on avoiding shared, mutable state. This programming paradigm is declarative. Functional code is usually more concise and easier to test.
In this mini series, we will embark on an exciting journey to learn a bit about functional programming by using JavaScript. Presented concepts will be mostly universal and applicable to other programming languages. This series is created with beginners and non-programmers in mind; don't worry, we will take it slowly!
Zaiste Weekly Newsletter:
#functional #javascript #memoization
0 Comments