https://github.com/ullaskunder3/functional-js
...
https://github.com/ullaskunder3/functional-js
Last synced: 4 months ago
JSON representation
...
- Host: GitHub
- URL: https://github.com/ullaskunder3/functional-js
- Owner: ullaskunder3
- Created: 2021-09-17T12:51:04.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-09-23T07:04:10.000Z (over 4 years ago)
- Last Synced: 2025-10-07T10:51:11.150Z (9 months ago)
- Size: 1000 Bytes
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Awesome Functional JavaScript
## 01. Why functional programming
## 02. Higher order function
## 03. map, filter, & reduce
## 03. Curring
## 04. Pure function & immutability
## 05. Closures
## 06. Function decoration
## 06. Functors
## 06. Promisis
## 06. Recurion
## 06. Streams
## 06. Monad
### 01. Functional programming
- Imperative
- Declarative
- Object Oriented
- __Functional__ :
- ...
first Its one of the programming paradigm
Difference Between Pure and impure function
Pure Function is deterministic means output is totally depends on the input
```js
function greet(name){
return `Hello, ${name}`;
}
greet(Ullas); // Hello, Ullas
greet(Awesome); // Hello, Awesome
```
Impure Function
```js
let name = "Ullas"
function greet(){
console.log("Hello, ", name);
}
greet(); // Hello, Ullas
name = "Awesome";
greet(); //Hello, Awesome
```