Skip to content

Shadi A.#13

Open
shmoonwalker wants to merge 4 commits intoHackYourAssignment:mainfrom
shmoonwalker:main
Open

Shadi A.#13
shmoonwalker wants to merge 4 commits intoHackYourAssignment:mainfrom
shmoonwalker:main

Conversation

@shmoonwalker
Copy link

Complete task for week 3

@github-actions
Copy link

📝 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 Jan 31, 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.

Hi @shmoonwalker , well done! 👍

Good job refactoring the code in Task 4. You show a good understanding of the DRY principle. Good luck in the next modules!

Comment on lines +19 to +36
if (dateFormat === "MDY") {
return {
month: partOne,
day: partTwo,
year: yearValue
};
}

if (dateFormat === "DMY") {
return {
day: partOne,
month: partTwo,
year: yearValue
};
}

return "Invalid date input";
};

Choose a reason for hiding this comment

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

Good job👍

Comment on lines +1 to +6
export const convertHoursToMinutes = (hour) => hour * 60;
export const convertMinutesToHours = (minute) => minute / 60;
export const convertDaysToHours = (days) => days * 24;
export const convertHoursToDays = (hour) => hour / 24 ;
export const convertMinutesToSeconds = (minute) => minute * 60;
export const convertSecondsToMinutes = (second) => second / 60; No newline at end of file

Choose a reason for hiding this comment

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

Nice use of arrow functions 👍

@mo92othman mo92othman added Reviewed This assignment has been reivewed by a mentor and a feedback has been provided and removed To review labels Feb 5, 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