File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ One place JavaScript!
8
8
- [ Callback/ Higher-order Function] ( #callback )
9
9
- [ Promises] ( #promises )
10
10
- [ Closures] ( #closures )
11
+ - [ Pure functions] ( #pure )
11
12
- [ Splice vs Slice vs Split] ( #diffs )
12
13
- [ Data Types] ( #datatypes )
13
14
- [ DOM] ( #dom )
@@ -118,6 +119,17 @@ function outerFunction () {
118
119
outerFunction ()() // I see the outer variable!
119
120
```
120
121
122
+
123
+ <a name =“pure”/ >
124
+
125
+ #### Pure functions
126
+
127
+ A Pure functions doesn't depend on and doesn't modify the states of the variable out of its scope.
128
+ Technically, that means a pure function always returns same results given same parameters.
129
+ Its execution doesn't depends on the state of the system.
130
+ Pure functions are the piller of the Functional Programming
131
+
132
+
121
133
<a name =“sdiff”/ >
122
134
123
135
#### Splice vs Slice vs Split
You can’t perform that action at this time.
0 commit comments