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