Skip to content

Week 2 Assignment - #13

Open
murwaridfazal-art wants to merge 1 commit into
HackYourAssignment:mainfrom
murwaridfazal-art:main
Open

murwaridfazal-art wants to merge 1 commit into
HackYourAssignment:mainfrom
murwaridfazal-art:main

Conversation

@murwaridfazal-art

Copy link
Copy Markdown

No description provided.

Comment thread task-1/leap-year.js
if (isNaN(year) || year < 1 || year > 9999 || !Number.isInteger(year)) {
console.log('Invalid year!');
} else if (year % 400 === 0) {
console.log(`Yes, ${year} is a leap year`);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Great use of template literals!

@RHSebregts RHSebregts 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.

Hi!

Thank you for your work this week. Task 1 was great, but unfortunately there are some issues with task 2 and 3, which need to be addressed.

Thank you!

Comment thread task-2/login.js
(username === 'user' && password === '7654321');


if(incorrectAttempts >= 4) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

In my testing I could enter wrong credential 4 times before getting this error. Any idea as to why?

Comment thread task-3/converter.js
const eurAmountInput = prompt("Enter amount in EUR: ");
const eurAmountNum = Number(eurAmountInput);
if (Number.isNaN(eurAmountNum) || eurAmountNum > 0) {
if (Number.isNaN(eurAmountNum) || eurAmountNum <= 0) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Technically 0 appears to be neither negative nor positive. I think it's fair to make this statement, but a < 0 would also be ok.

Comment thread task-3/converter.js

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I cannot seem to run the code, the error I get is quite descriptive, so please try and run it on your machine and try to fix it.

@RHSebregts RHSebregts added Reviewed This assignment has been reivewed by a mentor and a feedback has been provided and removed Review in progress labels Nov 18, 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