-
-
Notifications
You must be signed in to change notification settings - Fork 50
NW6 | Haythem Mohammed | Module-JS1 | WEEK3 #161
base: main
Are you sure you want to change the base?
Conversation
well done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well done!
@@ -21,3 +21,17 @@ | |||
// Identify Reflex Angles: | |||
// When the angle is greater than 180 degrees and less than 360 degrees, | |||
// Then the function should return "Reflex angle" | |||
|
|||
function getAngleType(angle) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
360 is not taken care of
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thank for you your feedback I will fix it
@@ -33,3 +33,11 @@ | |||
// Explanation: The fraction 3/3 is not a proper fraction because the numerator is equal to the denominator. The function should return false. | |||
|
|||
// These acceptance criteria cover a range of scenarios to ensure that the isProperFraction function handles both proper and improper fractions correctly and handles potential errors such as a zero denominator. | |||
|
|||
function isProperFraction(Numerator,Denominator) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you didnt check if the denominator is 0. your variable names should start with a small letter. i.e numerator
@@ -4,3 +4,55 @@ | |||
// Store this expression in a variable and reference it twice in the function in the correct place | |||
|
|||
// Explain why it makes more sense to store this expression in a variable | |||
|
|||
function formatAs12HourClock(time) { | |||
if (Number(time.slice(0, 2)) > 12) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is a bit complicated, can you think of a simpler solution where you can get the hours, and check if its less than 12 or not, to decide the am
or pm
and also use that to get the right time
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
okay, thank you for checking my work.
Learners, PR Template
Self checklist
Changelist
Briefly explain your PR.
Questions
Ask any questions you have for your reviewer.