Skip to content

Hannah N#10

Open
hannahwn wants to merge 15 commits intoHackYourAssignment:mainfrom
hannahwn:main
Open

Hannah N#10
hannahwn wants to merge 15 commits intoHackYourAssignment:mainfrom
hannahwn:main

Conversation

@hannahwn
Copy link

@hannahwn hannahwn commented Feb 4, 2026

week 4 assingment

@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

Copy link

@reposman33 reposman33 left a comment

Choose a reason for hiding this comment

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

looks good... Just a reminder - you can use backtick (`) instead of single quote ('). With backticks you can do more like adding newlines without \n.

function addTransaction(transaction) {
// TODO: Implement this function
let maxId = 0;
for (let i = 0; i < transactions.length; i++) {

Choose a reason for hiding this comment

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

nice... you think of adding an id property with a consecutive value to the transaction object. Bonus points!


function getTransactionsByCategory(category) {
// TODO: Implement this function
let found = [];

Choose a reason for hiding this comment

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

found can be a const since you don't change the object found points to. You only add things to it.

@reposman33 reposman33 self-assigned this Feb 22, 2026
@reposman33 reposman33 added the Reviewed This assignment has been reivewed by a mentor and a feedback has been provided label Feb 22, 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