Skip to content

Hasan Alwayel -Lulwa Alroomi#7

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

Hasan Alwayel -Lulwa Alroomi#7
lolwaa wants to merge 1 commit intoJoinCODED:mainfrom
lolwaa:main

Conversation

@lolwaa
Copy link

@lolwaa lolwaa commented Mar 11, 2025

No description provided.

// calculateTotalIncome(transactions); // => 3200 (1000 + 1500 + 700)
function calculateTotalIncome(transactions: Transaction[]): number {
// write your code here...
const incomeOnly = transactions.filter(x => x[0] === "income");

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