From 1cd88849cd6b0b5e0b4108c11ec8e6a5e9e375bf Mon Sep 17 00:00:00 2001 From: Fitsumhelina Date: Fri, 29 Nov 2024 00:06:37 +0300 Subject: [PATCH] 60% complated --- Exercises/day-1/functional-programing-exercise.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Exercises/day-1/functional-programing-exercise.js b/Exercises/day-1/functional-programing-exercise.js index 901d783..d98eacc 100644 --- a/Exercises/day-1/functional-programing-exercise.js +++ b/Exercises/day-1/functional-programing-exercise.js @@ -64,12 +64,12 @@ const price =products.map((product) => product.price) // const product = products.indexOf ((product) => product.price === undefined) // Check if some products do not have a price value -const items = products.some((product) => product.price === '' ) +// const items = products.some((product) => product.price === '' ) // Check if all the products have price value +const items = products.every((product) => product.price === '' ) -// Explain the difference between forEach, map, filter and reduce +// Explain the difference between forEach, map, filter and reduce // Explain the difference between filter, find and findIndex - // Explain the difference between some and every \ No newline at end of file