This commit is contained in:
Hemanth.HM 2015-04-03 03:57:05 +00:00
parent 5a836308db
commit e5fd793982

View file

@ -64,7 +64,16 @@ curriedSum(40)(2) // 42.
--- ---
## Purity ## Purity
> A function is said to be pure if the return value is only determined by its
input values, without any side effects.
```js
let greet = "yo";
greet.toUpperCase(); // YO;
greet // yo;
```
--- ---
## Side effects ## Side effects