You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: index.html
+13-6Lines changed: 13 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -36,17 +36,17 @@
36
36
<imgsrc="http://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png" alt="Fork me on GitHub">
37
37
</a>
38
38
<header>
39
-
<h1>JavaScript Patterns</h1>
39
+
<h1>JavaScript Pattern Collection</h1>
40
40
<imgsrc="img/js-patterns.png" />
41
41
</header>
42
42
<divrole="main">
43
43
<h2>Function Patterns</h2>
44
44
<h3>API Patterns</h3>
45
45
<ul>
46
-
<li><ahref="">Callback patterns</a></li>
47
-
<li><ahref="">Configuration objects</a></li>
48
-
<li><ahref="">Returning functions</a></li>
49
-
<li><ahref="">Currying</a></li>
46
+
<li><ahref="https://github.com/shichuan/javascript-patterns/blob/master/function-patterns/callback.html" target="_blank">Callback patterns</a> - when you pass function A to function B as a parameter, function A is a callback function</li>
47
+
<li><ahref="https://github.com/shichuan/javascript-patterns/blob/master/function-patterns/configuration-objects.html" target="_blank">Configuration objects</a>- keep control of function arguments and makes it easily configurable</li>
48
+
<li><ahref="https://github.com/shichuan/javascript-patterns/blob/master/function-patterns/returning-functions.html" target="_blank">Returning functions</a>- one function returns another function or create another function on-demand</li>
49
+
<li><ahref="https://github.com/shichuan/javascript-patterns/blob/master/function-patterns/currying.html" target="_blank">Currying</a> - used to create new functions dynamically by partially applying a set of arguments</li>
0 commit comments