Skip to content

Complete week 3 assignments - #15

Open
azozhamed wants to merge 1 commit into
HackYourAssignment:mainfrom
azozhamed:main
Open

azozhamed wants to merge 1 commit into
HackYourAssignment:mainfrom
azozhamed:main

Conversation

@azozhamed

Copy link
Copy Markdown

No description provided.

@sarlam
sarlam self-requested a review November 23, 2026 13:43

@sarlam sarlam left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This is really readable and easy to review, nice work here

I made an optional comment which you do not have to address

What needs to be done: Week4 cleanup is missing

Let me know if you need any help

Comment thread task-1/book.js
Comment on lines +11 to +15
console.log(isBookApplicable("JavaScript")); // true
console.log(isBookApplicable("javascript")); // true
console.log(isBookApplicable("Python")); // false
console.log(isBookApplicable(" JavaScript ")); // true
console.log(isBookApplicable("HTML")); // false No newline at end of file

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Really cool to have added different and more challenging test examples than what was listed in the instructions

Comment thread task-2/parse-date.js
day: second,
year: third
};
} else {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

while it technically works and for this specific example it does what is required from it, this would need to be refactored for this code to be easier to maintain in the future

Imagine, tomorrow we introduce a new format DT which is now 21101983-2035 (date-time) then it would silently say it is working returning day: 21101983 and month: 2035 and year: undefined

We most likely want something more robust that actually look into the declared format and return undefined or null otherwise so if we introduce new formats later it does not breaks

@sarlam sarlam added the Reviewed This assignment has been reivewed by a mentor and a feedback has been provided label Nov 25, 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