Рет қаралды 9,634
In programming, functions are units of computations. They take input and produce output. In order to use a function, we must to define it. This process consists of associating a name with a sequence of operations to perform when given function is invoked.
In JavaScript, there are many ways to define functions. There is a function declaration, a function expression (which can be named or anonymous) and finally an arrow function. In this tutorial, we will be using exclusively arrow functions as they are shorter, easier to write and their semantics are simpler in JavaScript
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: bit.ly/zaiste-weekly
#functional #javascript #functions