Skip to content

Commit 57f90ab

Browse files
committed
day 9 fixes
1 parent 667129e commit 57f90ab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

09_Day/09_day_higher_order_functions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ A callback is a function which can be passed as parameter to other function. See
5555

5656
```js
5757
// a callback function, the function could be any name
58-
const callBack = (n) => {
58+
const callback = (n) => {
5959
return n ** 2
6060
}
6161
@@ -160,7 +160,7 @@ In JavaScript, we use setTimeout higher order function to execute some action at
160160

161161
```js
162162
// syntax
163-
function callBack() {
163+
function callback() {
164164
// code goes here
165165
}
166166
setTimeout(callback, duration) // duration in milliseconds

0 commit comments

Comments
 (0)