Skip to content
This repository was archived by the owner on Jan 14, 2024. It is now read-only.

Conversation

SumayaT
Copy link

@SumayaT SumayaT commented Feb 25, 2023

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 repository

Your Details

  • Your Name:
  • Your City:
  • Your Slack Name:

Homework Details

  • Module:
  • Week:

Notes

  • What did you find easy?

  • What did you find hard?

  • What do you still not understand?

  • Any other notes?

@Dedekind561
Copy link
Contributor

Hello there @SumayaT,
Thank you for your submission.
Please update the title for your PR so it is in the correct format.

@Dedekind561
Copy link
Contributor

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.

Copy link
Contributor

@Dedekind561 Dedekind561 left a 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);
Copy link
Contributor

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

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

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants