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

London Class_8-Busra Erdogan-JS-Week_1 - #253

Closed
BusraElmasErdogan wants to merge 3 commits into
CodeYourFuture:masterfrom
BusraElmasErdogan:master
Closed

London Class_8-Busra Erdogan-JS-Week_1#253
BusraElmasErdogan wants to merge 3 commits into
CodeYourFuture:masterfrom
BusraElmasErdogan:master

Conversation

@BusraElmasErdogan

@BusraElmasErdogan BusraElmasErdogan commented Dec 16, 2021

Copy link
Copy Markdown

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:Busra Erdogan
  • Your City:London
  • Your Slack Name:BusraErdogan

Homework Details

  • Module:JS
  • Week:1

Notes

  • What did you find easy?

  • What did you find hard?
    Functions

  • What do you still not understand?
    I half-understood the functions.

  • Any other notes?


View rendered exercises/G-numbers/README.md

exercises completed (A to L)
mandatory completed (1 to 4)
Comment thread mandatory/4-tax.js
function addTaxAndFormatCurrency() {}
function addTaxAndFormatCurrency(productPrice) {
const total = productPrice + productPrice * 0.2 ;
return `£${total.toFixed(2)}`;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi Busra, good job with using string interpolation. Well done!!

```

You can use mathematical operators to caclulate numbers:
You can use mathematical operators to calculate numbers:

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 :) Thanks for fixing the spelling errors! It happens all the time in real projects. It's very useful to have a spellchecker configured in your IDE

let numberOfMentors = 8 * 2;
console.log(mentors + numberOfMentors);
let totalText = 'Total number of students and mentors: ';
let total = numberOfMentors + numberOfStudents;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very good choice of variable names, the code is easy to follow.

return grt + name;
};

let write = greetingMentors(greeting, mentor1);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All these 5 greetings below are essentially the same code, only the mentor name is different. Could you create another function to reduce duplication of the code?

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.

4 participants