Skip to content

Manchester | 25-ITP-May | Jennifer Isidienu | Sprint 3 | Coursework/Sprint-3* #689

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

JenniferIsidienu
Copy link

@JenniferIsidienu JenniferIsidienu commented Jul 31, 2025

Learners, PR Template

Self checklist

  • I have committed my files one by one, on purpose, and for a reason
  • I have titled my PR with Region | Cohort | FirstName LastName | Sprint | Assignment Title
  • I have tested my changes
  • My changes follow the style guide
  • My changes meet the requirements of this task

Changelist

Briefly explain your PR.

Questions

Ask any questions you have for your reviewer.

@JenniferIsidienu JenniferIsidienu added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Jul 31, 2025
@CameronDowner CameronDowner added Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Aug 2, 2025
Copy link

@CameronDowner CameronDowner left a comment

Choose a reason for hiding this comment

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

I've reviewed your code and noticed that some code is missing. Please take a moment to review and complete these.

It’s important to run and test your code before submitting - while many of your test cases look correct, they won’t pass as-is without working code behind them.

Due to these tests not passing & other parts of your submission, I suspect you may have used AI to generate some of this. Remember, the goal here isn’t just to complete the tasks, but to gain more understanding.

There’s still time before the final submission, and we’ve got two revision sessions ahead. Please feel free to reach out if you need support - happy to help.

// A proper fraction has a non-zero denominator,
// and the absolute value of the numerator is less than the denominator.
if (denominator === 0) return false;
return Math.abs(numerator) < Math.abs(denominator);

Choose a reason for hiding this comment

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

What is the Math.abs function doing to our inputs?


// If the rank is a number between "2" and "10", return its numeric value
if (["2", "3", "4", "5", "6", "7", "8", "9", "10"].includes(rank)) {
return parseInt(rank, 10); // Convert string to number

Choose a reason for hiding this comment

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

What is the purpose of 10 in parseInt?

@CameronDowner CameronDowner added Reviewed Volunteer to add when completing a review with trainee action still to take. and removed Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. labels Aug 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Reviewed Volunteer to add when completing a review with trainee action still to take.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants