From 0647ce59a3d8ff5516c63674fd05fcf804d43cc1 Mon Sep 17 00:00:00 2001 From: evabth <97984540+evabth@users.noreply.github.com> Date: Mon, 26 Jun 2023 13:57:59 -0400 Subject: [PATCH] Update 09_day_higher_order_functions.md Added example list to the code example for the some() function, also corrected the comments on the code example --- 09_Day_Higher_order_functions/09_day_higher_order_functions.md | 3 ++- 1 file changed, 2 insertions(+), 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..b4b94ce 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 @@ -480,7 +480,8 @@ console.log(areSomeTrue) //true ``` ```js -const areAllStr = names.some((name) => typeof name === 'number') // Are all strings ? +const names = ['Asabeneh', 'Mathias', 'Elias', 'Brook'] +const areAllStr = names.some((name) => typeof name === 'number') // Are some numbers? console.log(areAllStr) // false ```