diff --git a/09_Day/09_day_higher_order_functions.md b/09_Day/09_day_higher_order_functions.md index e07b2e96..04ccce6f 100644 --- a/09_Day/09_day_higher_order_functions.md +++ b/09_Day/09_day_higher_order_functions.md @@ -55,7 +55,7 @@ A callback is a function which can be passed as parameter to other function. See ```js // a callback function, the function could be any name -const callBack = (n) => { +const callback = (n) => { return n ** 2 } ​ @@ -160,7 +160,7 @@ In JavaScript, we use setTimeout higher order function to execute some action at ```js // syntax -function callBack() { +function callback() { // code goes here } setTimeout(callback, duration) // duration in milliseconds