Skip to content

Birmingham | 26-ITP-May | Toluwalase Tiamiyu | Sprint 3 | Coursework#1447

Open
TTiamiyu wants to merge 8 commits into
CodeYourFuture:mainfrom
TTiamiyu:coursework/Sprint-3
Open

Birmingham | 26-ITP-May | Toluwalase Tiamiyu | Sprint 3 | Coursework#1447
TTiamiyu wants to merge 8 commits into
CodeYourFuture:mainfrom
TTiamiyu:coursework/Sprint-3

Conversation

@TTiamiyu

@TTiamiyu TTiamiyu commented Jul 3, 2026

Copy link
Copy Markdown

Learners, PR Template

Self checklist

  • I have titled my PR with Region | Cohort | FirstName LastName | Sprint | Assignment Title
  • My changes meet the requirements of the task
  • I have tested my changes
  • My changes follow the style guide

Changelist

  1. Implement (get angle type, proper fraction test & get card value test)
  2. Rewrite tests

Questions

None

@TTiamiyu TTiamiyu added 🏕 Priority Mandatory This work is expected Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Jul 3, 2026

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

Good work, just one minor comment from me


function isProperFraction(numerator, denominator) {
// TODO: Implement this function
if (denominator === 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.

Is there a way you could combine this condition with the one below?

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.

Hi, could you please clarify the comment for me, do you mean combining it with the "module.exports = isPropperFraction" ?

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Sure. Here you have two boolean checks. First, your condition in if (denominator === 0). Then below that you also have Math.abs(numerator) < Math.abs(denominator). These both have separate return statements. Is there a way these could all be combined into a single return, without the need for an if?

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.

Thank you for the clarification, i understand now, i have found a way to combine the conditions with '&&'.

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.

my last commit addresses the comment, please check and let me know what you think

@LonMcGregor LonMcGregor added Reviewed Volunteer to add when completing a review with trainee action still to take. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Jul 8, 2026
@TTiamiyu TTiamiyu added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Jul 13, 2026

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

Great, this is done now

@LonMcGregor LonMcGregor 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. Reviewed Volunteer to add when completing a review with trainee action still to take. labels Jul 14, 2026
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. 🏕 Priority Mandatory This work is expected

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants