Skip to content

Zainab Alarbash - Fatemah Alattar#8

Open
EngFAlAttar wants to merge 1 commit intoJoinCODED:mainfrom
EngFAlAttar:main
Open

Zainab Alarbash - Fatemah Alattar#8
EngFAlAttar wants to merge 1 commit intoJoinCODED:mainfrom
EngFAlAttar:main

Conversation

@EngFAlAttar
Copy link

finished task

// write your code here...

return -1; // replace -1 with what you see is fit
return transactions.filter(element => element[0] == "income").reduce((total, element) => total + element[1], 0); // replace -1 with what you see is fit

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not reuse the functions you already defined?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants