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

MANCHESTER NW5 - ANVAR AZIZI - JavaScript - WEEK_1 - #387

Open
rebwar1 wants to merge 7 commits into
CodeYourFuture:masterfrom
CYF-Rebwar:master
Open

MANCHESTER NW5 - ANVAR AZIZI - JavaScript - WEEK_1#387
rebwar1 wants to merge 7 commits into
CodeYourFuture:masterfrom
CYF-Rebwar:master

Conversation

@rebwar1

@rebwar1 rebwar1 commented Aug 26, 2022

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:Anvar
  • Your City:Manchester
  • Your Slack Name:Rebwar

Homework Details

  • Module:
  • Week:

Notes

  • What did you find easy?

  • What did you find hard?

  • What do you still not understand?

  • Any other notes?

Comment thread mandatory/4-tax.js Outdated

function addTaxAndFormatCurrency() {}
function addTaxAndFormatCurrency(price) {
let taxOf = (price * 20) / 100;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Consider variable name taxOf : a proper naming way will be more clearer when defnining variables.

Comment thread extra/2-piping.js Outdated

let goodCode =
let goodCode = format(24);
let goodCode1 = add(10, 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.

Nice work , and consider naming the variables in a clearer way .

@youweb3 youweb3 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

nice work

Comment thread exercises/G-numbers/exercise.js Outdated
`Number of students: ${numberOfStudents}
Number of mentors: ${numberOfMentors}
Total number of students and mentors: ${total}`
);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Good correction

const mentor4 = "Rob";
const mentor5 = "Yohannes";
const names = [mentor1, mentor2, mentor3, mentor4, mentor5];

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Good - unused code should be deleted.

Comment thread mandatory/3-function-output.js Outdated
function getRandomNumber() {
return Math.random() * 10;
//random returns with 10 will result in a max value of 9.999
//random returns with 10 will result in a max value of 9.999 and the lowest value is 0

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Yes, good clarification.

Comment thread extra/2-piping.js Outdated
let goodCode = format(startingValue);
let goodCode = format(24);
let goodCode1 = add(10, 2);
let goodCode2 = multiply(10, 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.

You should be starting with the value of 2, then adding 10, then multiplying by 2, then formatting - the result of each function should be passed to the next function.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants