-
-
Notifications
You must be signed in to change notification settings - Fork 218
Sheffield | 25-ITP-SEP | Jak Rhodes-Smith | Sprint 2 | coursework/sprint-2 #715
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
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.
Great work overalls. I only have a few suggestions.
return (weight / height ** 2).toFixed(1); | ||
} |
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.
What type of value do you expect the function to return? A number or a string?
Does your function return the type of value you expect?
const outMidnight = formatAs12HourClock("00:00"); | ||
const targetMidnight = "00:00 am"; |
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.
00:00
should be equivalent to 12:00 am
.
const out1 = formatAs12HourClock("01:00"); | ||
const target1 = "01:00 am"; | ||
console.assert( | ||
out1 === target1, | ||
`current output: ${out1}, target output: ${target1}` | ||
); |
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.
Some return values are padded with zeroes and some aren't.
It would be better to make the format more consistent.
Learners, PR Template
Self checklist
Changelist
Completed all tasks for sprint 2