Skip to content

Shamisa A - #10

Open
chamisaw wants to merge 4 commits into
HackYourAssignment:mainfrom
chamisaw:main
Open

chamisaw wants to merge 4 commits into
HackYourAssignment:mainfrom
chamisaw:main

Conversation

@chamisaw

Copy link
Copy Markdown
  1. conole → console (typo, the app didn’t start)
  2. eur_usd_rate → EUR_USD_RATE (JavaScript is case-sensitive)
  3. 0 → < 0 in the EUR check (the condition was reversed)

  4. Also fixed the USD→EUR output, which printed the USD amount twice instead of the EUR amount.

@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!

Great work on this assignment. Task 2 has a small bug, if you fix that you're good to go!

Thank you!

Comment thread task-2/login.js Outdated
(username === 'admin' && password === 'Hack1234') ||
(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?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Good catch, thanks! The check ran before the failed attempt was counted, so it was always one step behind. I changed the condition to >= 3, so now you're blocked after 3 incorrect attempts.

@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