From cab10a4f339142e2265d9a1a8839cbd6108d6007 Mon Sep 17 00:00:00 2001 From: Joseph Bak <36170953+josephbak@users.noreply.github.com> Date: Sat, 2 Apr 2022 17:44:33 -0400 Subject: [PATCH] Some fix in 09_day_higher_order_functions.md Fixed typos and wrong outputs in 09_day_higher_order_functions.md --- .../09_day_higher_order_functions.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/09_Day_Higher_order_functions/09_day_higher_order_functions.md b/09_Day_Higher_order_functions/09_day_higher_order_functions.md index 677e7b4..8c01298 100644 --- a/09_Day_Higher_order_functions/09_day_higher_order_functions.md +++ b/09_Day_Higher_order_functions/09_day_higher_order_functions.md @@ -102,7 +102,7 @@ console.log(sumArray(numbers)) ``` ```sh -15 +10 ``` The above example can be simplified as follows: @@ -122,7 +122,7 @@ console.log(sumArray(numbers)) ``` ```sh -15 +10 ``` ### Setting time @@ -203,6 +203,7 @@ console.log(sum) 3 4 5 +0 ``` ```js @@ -518,7 +519,7 @@ console.log(numbers) //[100, 37, 9.81, 3.14] #### Sorting Object Arrays -When ever we sort objects in an array. We use the object key to compare. Lets see the example below. +Whenever we sort objects in an array, we use the object key to compare. Let's see the example below. ```js objArr.sort(function (a, b) {