Skip to content
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

Open
wants to merge 38 commits into
base: main
Choose a base branch
from

Conversation

fhkahin
Copy link

@fhkahin fhkahin commented Nov 22, 2023

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 COHORT_NAME | FIRST_NAME LAST_NAME | REPO_NAME | WEEK
  • I have tested my changes
  • My changes follow the style guide
  • My changes meet the requirements of this task

Changelist

Briefly explain your PR. Javascript Week 3 Exercise completed.

Questions

Ask any questions you have for your reviewer.

Copy link

@bunday bunday left a 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) {
Copy link

@bunday bunday Dec 9, 2023

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) {
Copy link

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`;
Copy link

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.

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.

3 participants