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

NW5 Manchester - Ahmed Mohamed - JS1 - Week 1 - #375

Open
AhmedMohamed809 wants to merge 22 commits into
CodeYourFuture:masterfrom
AhmedMohamed809:master
Open

NW5 Manchester - Ahmed Mohamed - JS1 - Week 1#375
AhmedMohamed809 wants to merge 22 commits into
CodeYourFuture:masterfrom
AhmedMohamed809:master

Conversation

@AhmedMohamed809

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:Ahmed Mohamed
  • Your City:Manchester
  • Your Slack Name:Ahmed Mohmaed

Homework Details

  • Module:JS
  • Week: 1

Notes

  • What did you find easy?

  • What did you find hard?

  • What do you still not understand?

  • Any other notes?

Comment thread mandatory/1-syntax-errors.js

@AltomHussain AltomHussain 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.

Overall great work Ahmed looks good, well done!! Just remember to add comments to all of your functions, it is just a really handy way of making your code more readable for your and other people :)

function getStringLength(word) {
return "word".length();
word = " CodeYourFuture ";
word = " CodeYourFuture teaches coding ";

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 did not need to assign word in lines 7 and 8, because work parameter is coming from the test below. So all you need is to handle what's inside the function.

At the moment lines 7 & 8 are useless because the function is not picking the "word" Parameter from lines 7 &8 but it is picking from the argument that's been passed from below in the tests

function multiply(a, b, c) {
a * b * c;
return;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Also, delete these empty lines before return and perhaps add empty lines between the functions to make it more readable.

}

// Add comments to explain what this function does. You're meant to use Google!

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Here is suggesting you add comments to explain what the functions are doing, so you should probably spend some time writing some comments

}

function concatenate(firstWord, secondWord, thirdWord) {
return firstWord+" "+secondWord+" "+thirdWord;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

It will be really readable and nicer if you can add spaces between your strings and variables here like so:
return firstWord + " " + secondWord + " " + thirdWord;

Comment thread mandatory/4-tax.js

function calculateSalesTax() {}
function calculateSalesTax(price) {
let salesTax=(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.

Again spaces between your variables to make it easy to read.

Comment thread mandatory/4-tax.js
*/

function addTaxAndFormatCurrency() {}
function addTaxAndFormatCurrency(tax) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Really good reusability for the function created above good stuff :)

@AhmedMohamed809 AhmedMohamed809 changed the title NW-Manchester-Ahmed_Mohamed-JS-week1 NW-Manchester-Ahmed Mohamed-JS-week1 Dec 8, 2022
@AhmedMohamed809 AhmedMohamed809 changed the title NW-Manchester-Ahmed Mohamed-JS-week1 NW5-Ahmed Mohamed-JS-week1 Dec 8, 2022
@AhmedMohamed809 AhmedMohamed809 changed the title NW5-Ahmed Mohamed-JS-week1 NW5 Manchester - Ahmed Mohamed - JS1 - Week 1 Dec 8, 2022
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.

3 participants