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 2 commits 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
@JenniferIsidienu JenniferIsidienu added Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. and removed Reviewed Volunteer to add when completing a review with trainee action still to take. labels Aug 13, 2025
if (numerator < denominator) return true;
// add your completed function from key-implement here
// Check for positive values and that numerator is less than denominator
if (numerator > 0 && denominator > 0 && numerator < denominator) {

Choose a reason for hiding this comment

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

small comment, not blocking:

If numerator > 0 && denominator > 0 && numerator < denominator is evaluating to a boolean & return a boolean, we don't need to the if statement:

function isProperFraction(numerator, denominator) {
  return numerator > 0 && denominator > 0 && numerator < denominator;
}

Copy link
Author

Choose a reason for hiding this comment

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

Alright. Thank you!

@CameronDowner
Copy link

This is looking really good & all tests passing as expected 🙂 I will mark as complete

@CameronDowner CameronDowner added Complete Volunteer to add when work is complete and all review comments have been addressed. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Aug 18, 2025
Copy link

Your PR couldn't be matched to an assignment in this module.

Please check its title is in the correct format, and that you only have one PR per assignment.

If this PR is not coursework, please add the NotCoursework label (and message on Slack in #cyf-curriculum or it will probably not be noticed).

@JenniferIsidienu
Copy link
Author

Thanks Cameron

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Complete Volunteer to add when work is complete and all review comments have been addressed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants