Skip to content

Conversation

@YanaP1312
Copy link

Done tasks 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 @YanaP1312, 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!

const bookName = "The fundamentals of JavaScript".toLowerCase();
const pureString = searchString.trim().toLowerCase();

if(!pureString) return false;

Choose a reason for hiding this comment

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

Nice that you're checking this!

Comment on lines +9 to +11
const first = Number(date.substring(0, firstDash));
const second = Number(date.substring(firstDash + 1, lastDash));
const third = Number(date.substring(lastDash + 1));

Choose a reason for hiding this comment

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

Nice, this works correctly 👍
You could also use split("-") here, which would make the code easier to read and maintain.

Minor note: more descriptive variable names (like day or month) can improve readability, but this is also fine at this stage.

Comment on lines +1 to +11
export const convertHoursToMinutes = hours => hours * 60;

export const convertMinutesToHours = minutes => minutes / 60;

export const convertDaysToHours = days => days * 24;

export const convertHoursToDays = hours => hours / 24;

export const convertMinutesToSeconds = minutes => minutes * 60;

export const convertSecondsToMinutes = seconds => seconds / 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 👍

Comment on lines +2 to +3
const part_1 = weatherReport(city, celsius);
const part_2 = windChillCalculation(city, celsius, speed);

Choose a reason for hiding this comment

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

Minor suggestions: use more descriptive variable names instead of part_1 and part_2 .

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