Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Octowl committed Nov 5, 2024
1 parent 2e0e3f8 commit f3d5373
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions objectIteration.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,12 @@ function countSweetFruits(fruits) {
}
// console.log(countSweetFruits(fruits)); // Outputs: 4

// 5) Write a function `fruitByTaste` that takes an array of fruit objects `fruits` and returns an object where the keys are tastes and the values are arrays of fruit names
// 5) 🌶️🌶️🌶️ Write a function `fruitByTaste` that takes an array of fruit objects `fruits` and returns an object where the keys are tastes and the values are arrays of fruit names
function fruitByTaste(fruits) {
// Write your code here...
}
// console.log(fruitByTaste(fruits));
/**
* console.log(fruitByTaste(fruits));
* Output:
* {
* Sweet: ["Apple", "Banana", "Grapes"],
Expand Down

0 comments on commit f3d5373

Please sign in to comment.