ZA2-Ntshumayelo Matho-JavaScript-Core-1-coursework-week1 - #309
Conversation
|
For Exercise in L: You can use the $ to represent the identifier for variables and functions. like you used one in K exercise 5. |
|
Thank you my brother Gelson. That's noted
…On Tue, 19 Jul 2022, 00:25 Gelson Gerson Celestino, < ***@***.***> wrote:
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.
—
Reply to this email directly, view it on GitHub
<#309 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ATILWYW5Q5GJSL4ZBRCAUZ3VUXKUDANCNFSM53LZ5Q6Q>
.
You are receiving this because you authored the thread.Message ID:
<CodeYourFuture/JavaScript-Core-1-Coursework-Week1/pull/309/c1188383871@
github.com>
|
lexyking
left a comment
There was a problem hiding this comment.
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); | ||
|
|
| console.log(greeting); | ||
| console.log(greeting); | ||
| console.log(greeting); | ||
|
|
|
|
||
| console.log(message); | ||
| console.log(messageType); | ||
|
|
|
|
||
| console.log(message); | ||
| let greeting = greetingStart + name; | ||
| console.log(greeting); |
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
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"; |
There was a problem hiding this comment.
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"; |
There was a problem hiding this comment.
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; | ||
|
|
||
| } |
| // This function combines typed array with the new array. | ||
| function combine2Words(word1, word2) { | ||
| return word1.concat(word2); | ||
| } |
There was a problem hiding this comment.
There is a third function for this exercise.
Hint:
return firstWord.concat(' ').concat(secondWord).concat(' ').concat(thirdWord)
| return "£" + priceWithSalesTax.toFixed(2); | ||
| } | ||
|
|
||
| /* |
Volunteers: Are you marking this coursework? You can find a guide on how to mark this coursework in
HOW_TO_MARK.mdin the root of this repositoryYour Details
Homework Details
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