From c2c699997af7552f5a8746f16f35ccb18e2b00fc Mon Sep 17 00:00:00 2001 From: ASHWIN MALI <116144171+itzrealashwin@users.noreply.github.com> Date: Mon, 2 Oct 2023 16:52:29 +0530 Subject: [PATCH] Unwanted Statement found there is no need of console.log(sum) at line 197. The motive of code is to just print array not the sumOfArray --- 09_Day_Higher_order_functions/09_day_higher_order_functions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 9aa6871..383579b 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 @@ -194,7 +194,7 @@ arr.forEach((element, index, arr) => console.log(index, element, arr)) let sum = 0; const numbers = [1, 2, 3, 4, 5]; numbers.forEach(num => console.log(num)) -console.log(sum) + ``` ```sh