Skip to content

Conversation

@HamedRazizadeh-hub
Copy link

No description provided.

@github-actions
Copy link

github-actions bot commented Feb 4, 2026

📝 HackYourFuture auto grade

Assignment Score: 0 / 100 ✅

Status: ✅ Passed
Minimum score to pass: 0
🧪 The auto grade is experimental and still being improved

Test Details

@mo92othman mo92othman self-assigned this Feb 5, 2026
Copy link

@mo92othman mo92othman left a comment

Choose a reason for hiding this comment

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

Hey @HamedRazizadeh-hub, Overall, great work 👏
You implemented all requirements clearly, and your code is easy to follow.

Good job on the extra effort working on the bonus.

@@ -1,3 +1,83 @@
// This is the entrypoint for your application.
// This is the entrypoint for your application

Choose a reason for hiding this comment

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

This line could be deleted.

getTotalIncome,
getTotalExpenses,
getBalance,
getTransactionsByCategory,

Choose a reason for hiding this comment

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

Small note 🙂

getTransactionsByCategory is imported here but not used in this file.
It’s best practice to remove unused imports to keep the code clean and easier to read.

Comment on lines 41 to +52
function getLargestExpense() {
// TODO: Implement this function
let largest = null;
for (const transaction of transactions) {
if (
transaction.type === 'expense' &&
(!largest || transaction.amount > largest.amount)
) {
largest = transaction;
}
}
return largest;
}

Choose a reason for hiding this comment

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

Nice implementation 👍.

@mo92othman mo92othman added Reviewed This assignment has been reivewed by a mentor and a feedback has been provided and removed To review labels Feb 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Reviewed This assignment has been reivewed by a mentor and a feedback has been provided

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants