-
-
Notifications
You must be signed in to change notification settings - Fork 73
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
WM4 | FATIMA_SAFANA | Module-Structuring-and-Testing-Data | WEEK5 #220
base: main
Are you sure you want to change the base?
Conversation
@Fatimasfn Does this Sprint 2 PR need review? @loveth900 May I know why you removed the "Needs Review" label from this PR? |
@cjyuan yes please, I will appreciate a review |
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.
Code is good.
const decimalNumber = 0.5; | ||
const percentage = `${decimalNumber * 100}%`; | ||
//const decimalNumber = 0.5; | ||
return percentage = `${decimalNumber * 100}%`; |
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 is percentage
? Do you need it?
const vat = 0.2; | ||
const priceWithoutPoundSign = Number(price.substring(1)); | ||
return `£${(vat * priceWithoutPoundSign) + priceWithoutPoundSign}`; | ||
} |
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.
The spec is a bit vague, but I think it will probably make more sense for this function to deal with a number directly and return a number.
But what's matter is that you know how to implement a function. So no change is necessary.
@cjyuan Thank you for the review, I really appreciate it . |
Learners, PR Template
Self checklist
Changelist
Briefly explain your PR.
Questions
Ask any questions you have for your reviewer.