Skip to content

Commit f3a8f18

Browse files
committed
Hints and examples
1 parent 416ea37 commit f3a8f18

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

JavaScript/4-closure-recursive.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ function add(x) {
88
};
99
}
1010

11+
// const add = x => y => add(x + y);
12+
1113
const a1 = add(5);
1214
const a2 = a1(2);
1315
const a3 = a2(3);

JavaScript/5-logger.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ logger.colors = {
1717
const warning = logger('warning');
1818
const error = logger('error');
1919
const debug = logger('debug');
20+
const slow = logger('slow');
2021

22+
slow('I am slow logger');
2123
warning('Hello');
2224
error('World');
2325
debug('Bye!');

0 commit comments

Comments
 (0)