Skip to content

Barcelona | Oct-2025 | Ifeoma Osegbo | Sprint 3 | Coursework - #3

Open
Ify-O wants to merge 16 commits into
mainfrom
coursework/sprint-3
Open

Barcelona | Oct-2025 | Ifeoma Osegbo | Sprint 3 | Coursework#3
Ify-O wants to merge 16 commits into
mainfrom
coursework/sprint-3

Conversation

@Ify-O

@Ify-O Ify-O commented Dec 27, 2025

Copy link
Copy Markdown
Owner

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.

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

It looks good. There some rather minor details that would be good to adjust

@@ -8,8 +8,19 @@
// Then, write the next test! :) Go through this process until all the cases are implemented

function getAngleType(angle) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Do we need to support negative angles or angles >= 360?
If not worth throwing an error that they are not supported


function isProperFraction(numerator, denominator) {
if (numerator < denominator) return true;
if (Math.abs(numerator) < denominator) {

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 guess you need abs for the denominator as well

function isProperFraction(numerator, denominator) {
if (numerator < denominator) return true;
if (Math.abs(numerator) < denominator) {
return true;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Not critical but useful. return true or return false are considered a "bad taste" in programming.
Usually instead of
if (condition) { return true } else { return false }
you do
return condition

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants