Skip to content

Commit 0ca8dfa

Browse files
committed
change parameter from value to food
1 parent d5448db commit 0ca8dfa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

exercices/7.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ console.log(addNum([-2,-1,0,99], 2)) // [0, 1, 2, 101]
2424
function removeEggs(foods){
2525
let eggsToRemove = 0;
2626

27-
return foods.filter(value => {
28-
if (value === 'egg' && eggsToRemove < 2){
27+
return foods.filter(food => {
28+
if (food === 'egg' && eggsToRemove < 2){
2929
eggsToRemove++
3030
return false
3131
} else return true;

0 commit comments

Comments
 (0)