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

NORTHWEST_4 - Mohammed_Alabdulhamid - JAVA-SCRIPT - WEEK_1 - #142

Closed
Mohammedal-abdulhamid wants to merge 6 commits into
CodeYourFuture:masterfrom
Mohammedal-abdulhamid:master
Closed

NORTHWEST_4 - Mohammed_Alabdulhamid - JAVA-SCRIPT - WEEK_1#142
Mohammedal-abdulhamid wants to merge 6 commits into
CodeYourFuture:masterfrom
Mohammedal-abdulhamid:master

Conversation

@Mohammedal-abdulhamid

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: Mohammed
  • Your City: Northwest /Manchester
  • Your Slack Name: Mohammed Alabdulhamid

Homework Details

  • Module:JS
  • Week: 1

Notes

  • What did you find easy?

  • What did you find hard? extra a did't understand what is exactly required

  • What do you still not understand?

  • Any other notes?

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

hi @Mohammedal-abdulhamid,

Please see my feedback below:

I am just wondering if you checked your code by typing and running npm test in your terminal because there are a lot of tests that failed because of syntax errors.

Also, you missed out the last function:

function addTaxAndFormatCurrency(price) {
  const priceWithTax = calculateSalesTax(price);
  const formattedPrice = '£' + priceWithTax.toFixed(2);
  return formattedPrice;
}

Otherwise great work!
Let me know if you have any questions about the feedback.


function introduceMe(name, age)
return "Hello, my name is " + name "and I am " age + "years old";
return "Hello, my name is " + name + "and I am " + age + "years old";

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Suggested change
return "Hello, my name is " + name + "and I am " + age + "years old";
{ return "Hello, my name is " + name + " and I am " + age + " years old"; }

total = a + b;

return "The total is total";
return "The total is" + 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.

Suggested change
return "The total is" + total;
return "The total is " + total;

Comment thread mandatory/1-syntax-errors.js Outdated
return "The total is total";
return "The total is" + total;
}
let x =

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Suggested change
let x =

Comment thread mandatory/2-logic-error.js Outdated

function trimWord(word) {
return wordtrim();
return wordtrim;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Suggested change
return wordtrim;
return word.trim();


function getStringLength(word) {
return "word".length();
return word.length();

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Suggested change
return word.length();
return word.length;

}

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.

Suggested change
return "firstWord" + "secondWord" + "thirdWord";
return `${firstWord} ${secondWord} ${thirdWord}`;

Comment thread mandatory/4-tax.js Outdated
*/

function calculateSalesTax() {}
function calculateSalesTax() {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Suggested change
function calculateSalesTax() {
function calculateSalesTax(sales) {

@github-actions

Copy link
Copy Markdown

Your coursework submission has been closed because nobody has interacted with it in six weeks. You are welcome to re-open it to get more feedback.

@github-actions github-actions Bot added the Stale label Sep 21, 2021
@github-actions github-actions Bot closed this Sep 21, 2021
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