mirror of
https://github.com/rjNemo/functional-programming-jargon
synced 2026-06-06 02:26:43 +00:00
Defined side effects.
^
This commit is contained in:
parent
ee026cd4da
commit
cac94a4f1d
1 changed files with 4 additions and 0 deletions
|
|
@ -73,7 +73,11 @@ greet // yo;
|
|||
---
|
||||
|
||||
## Side effects
|
||||
> A function or expression is said to have a side effect if apart from returning a value, it modifies some state or has an observable interaction with external functions.
|
||||
|
||||
```js
|
||||
console.log("IO is a side effect!");
|
||||
```
|
||||
---
|
||||
|
||||
## Idempotency
|
||||
|
|
|
|||
Loading…
Reference in a new issue