-
-
Notifications
You must be signed in to change notification settings - Fork 481
madotory4 #539
base: master
Are you sure you want to change the base?
madotory4 #539
Conversation
Hello there @SumayaT, |
Remember you can check out the Git cheatsheet - pay particular attention to the section I want to send my code to volunteers (Pushing). This section gives instructions on how to format your PR title. |
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 on your first submission for the JS coursework!
Just added a few comments here for you to think about.
@@ -17,7 +20,11 @@ function calculateSalesTax() {} | |||
Remember that the prices must include the sales tax (hint: you already wrote a function for this!) | |||
*/ | |||
|
|||
function addTaxAndFormatCurrency() {} | |||
function addTaxAndFormatCurrency(number) { | |||
let currency = calculateSalesTax(number); |
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.
Is currency
the best name for this variable here? What does the output of the function calculateSalesTax
represent? Thinking of how to answer this question will help you to improve your variable name.
|
||
return "The total is total"; | ||
return "The total is " + total; |
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.
Can you try refactoring line 14 to make use of template literals?
} | ||
|
||
function multiply(a, b, c) { | ||
a * b * c; | ||
return; | ||
return a * b * c; |
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.
👓 Watch out for your indentation here.
Volunteers: Are you marking this coursework? You can find a guide on how to mark this coursework in
HOW_TO_MARK.md
in the root of this repositoryYour Details
Homework Details
Notes
What did you find easy?
What did you find hard?
What do you still not understand?
Any other notes?