Defined side effects.

^
This commit is contained in:
hemanth.hm 2015-06-07 18:20:10 +05:30
parent ee026cd4da
commit cac94a4f1d

View file

@ -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