London- 9- Lovelace - Howard Sun - JS1-coursework-Week1 - #428
Conversation
done 'exercise' and 'mandatory' tasks
updated 2 tasks in extra: 1- currency-conversion.js; 2-piping.js
|
|
||
| let totalNum = numberOfStudents + numberOfMentors; | ||
|
|
||
| console.log("Number of students: "+ numberOfStudents); |
There was a problem hiding this comment.
Hi Howard, since you are calculating the total sum of students and mentors in the totalNum variable;
console logging that and concatenate a string before the total should do the trick
There was a problem hiding this comment.
Hi Tony,
Thanks for your review !
You are right to do that way.
update exercise
updated all
| @@ -1,3 +1,7 @@ | |||
| // Start by creating a variable `message` | |||
|
|
|||
| let message = [] ; | |||
There was a problem hiding this comment.
I know this test passed, but I would normally expect message to be a string and not an array.
| //let messageLength = messageName.length | ||
|
|
||
| //let message = "My name is Daniel and my name is " + messageLength + " characters long"; | ||
| let message = `My name is ${name} and my name is ${name.length} characters long`; |
There was a problem hiding this comment.
Nice use of string interpolation!
| let goodmultiply = multiply(2,goodadd); | ||
|
|
||
| let goodCode = | ||
| let goodCode = format(goodmultiply); |
| //Write your code in here | ||
| if ( answer === positive ) { | ||
|
|
||
| console.log("The ball has shaken " + answer ); |
There was a problem hiding this comment.
Here, only "The ball has shaken!" should be in the console log. The answer should be picked at random from the possible answers.
| by the shakeBall function. | ||
| */ | ||
| function checkAnswer(answer) { | ||
| //Write your code in here |
There was a problem hiding this comment.
This function should take any of the possible random answers and then return if the answer is very positive, positive, negative or very negative.
done 'exercise' and 'mandatory' tasks
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/G-numbers/README.md