-
-
Notifications
You must be signed in to change notification settings - Fork 50
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
NW-6 | FATHI_KAHIN | JS1| week 3 exercises | WEEK-3 #160
base: main
Are you sure you want to change the base?
Conversation
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.
Impressive work here!
//Answer | ||
|
||
|
||
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.
great solution, you should take care of negative number, 360
if (denominator === 0) { | ||
return undefined; | ||
} | ||
if (numerator < denominator && numerator >= 0) { |
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 could have -1/7
this is a proper fraction, your code will say other wise at the moment.
|
||
// If it's after noon (more than 12 o'clock), we will adjust the time format | ||
if (hours > 12) { | ||
return `${hours - 12}:00 PM`; |
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 are throwing away the minutes of the time passed into your function. take care of that.
Learners, PR Template
Self checklist
Changelist
Briefly explain your PR. Javascript Week 3 Exercise completed.
Questions
Ask any questions you have for your reviewer.