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

ZA2-Ntshumayelo Matho-JavaScript-Core-1-coursework-week1 - #309

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

ZA2-Ntshumayelo Matho-JavaScript-Core-1-coursework-week1#309
MathoNM wants to merge 3 commits into
CodeYourFuture:masterfrom
MathoNM:master

Conversation

@MathoNM

@MathoNM MathoNM commented Jul 12, 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: Ntshumayelo Matho
  • Your City: Cape Town
  • Your Slack Name: Ntshumayelo

Homework Details

  • Module: JavaScript Core -1
  • Week: 1

Notes

  • What did you find easy?

  • What did you find hard?

  • What do you still not understand?

  • Any other notes?


View rendered exercises/L-functions-nested/README.md

@GelsonGerson

Copy link
Copy Markdown

For Exercise in L: You can use the $ to represent the identifier for variables and functions. like you used one in K exercise 5.
hope it helps.

@MathoNM

MathoNM commented Jul 18, 2022 via email

Copy link
Copy Markdown
Author

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

Please view the comments and also please try to address the section I-floats

console.log("Hello World. I just started learning JavaScript!.");
console.log("I like playing piano.");
console.log(2 + 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.

Great work!

console.log(greeting);
console.log(greeting);
console.log(greeting);

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!


console.log(message);
console.log(messageType);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Great!


console.log(message);
let greeting = greetingStart + name;
console.log(greeting);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Great work on providing a working solution.

For future reference: attention to detail is really important for a program.
Hello my name is Ntshumayelo
Is different from the expected
Hello, my name is Ntshumayelo
A comma after Hello and no space at the beginning of the greetingStart variable.

let message = "My name is Ntshumayelo";

console.log(message);
console.log(nameLength);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

The variable nameLength was used but not defined !! Please define it first before using it.

let mentor2 = "Irina";
let mentor3 = "Mimi";
let mentor4 = "Rob";
let mentor5 = "Yohannes";

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

While the use of let is recommended, we can't have the same value declared as above with both let and var.
Either delete all the mentors' names declarations using var and keep the ones using let, or delete the let and keep the var.
It should be fine after that

function introduceMe(name, age)
return "Hello, my name is " + name "and I am " age + "years old";
function introduceMe(name, age){
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.

Attention to detail is key with every program. The test will fail because there needs to be space as below:

return "Hello, my name is " + name + " and I am " + age + " years old";

The rest of the code is perfect.

return;
return a * b * c;

}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Well done.

// This function combines typed array with the new array.
function combine2Words(word1, word2) {
return word1.concat(word2);
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

There is a third function for this exercise.
Hint:

return firstWord.concat(' ').concat(secondWord).concat(' ').concat(thirdWord)

Comment thread mandatory/4-tax.js
return "£" + priceWithSalesTax.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.

Well done.

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