South Africa_Class-1 - Douglas Van Der Merwe - JavaScript Core - 1#40
South Africa_Class-1 - Douglas Van Der Merwe - JavaScript Core - 1#40DouglasVDM wants to merge 39 commits into
Conversation
d strings
strings concatenation
syntax error completed 1
logic errors done
completed
Mt first try.
concatenation with interpolation.
Added function for message.
Denver and Andile google meets
Denver and Andile
|
|
||
| // Add comments to explain what this function does. You're meant to use Google! | ||
| // The concat() method is used to join two or more arrays. | ||
| This method does not change the existing arrays, but returns a new array, containing the values of the joined arrays. |
There was a problem hiding this comment.
Hi Douglas great work buddy, you forgot to add slashes to make line 12 a comment.
There was a problem hiding this comment.
Thank you Jontaz77 for your comment. I'll review it and make the necessary changes.
|
|
||
| let answer = divide(5, 10); | ||
|
|
||
| console.log(Math.round(answer)); No newline at end of file |
There was a problem hiding this comment.
Douglas the expected results show 0.75 in the instructions and I see you using Math.round?
There was a problem hiding this comment.
Thank you Jontaz77 for your comment. I'll review it and make the necessary changes.
|
Hi Douglas you have done great work, keep it up buddy. Just my opinion your code has a lot of comments and is sometimes confusing to read your code. |
| // Add comments to explain what this function does. You're meant to use Google! | ||
| // The concat() method is used to join two or more arrays. | ||
| This method does not change the existing arrays, but returns a new array, containing the values of the joined arrays. | ||
| // This method does not change the existing arrays, but returns a new array, containing the values of the joined arrays. |
There was a problem hiding this comment.
I think the proper definition should have been , "the method is used to join two or more strings." because the test cases passes strings not arrays. I know the method also works for arrays but since also we haven't done arrays as yet....
There was a problem hiding this comment.
Thank you Simba for your comment. I'll review it and make the necessary changes.
| function multiply(a, b, c) { | ||
| a * b * c; | ||
| return; | ||
| return a*b*c; |
There was a problem hiding this comment.
what happened to the original spacing between a,b,c
There was a problem hiding this comment.
Thank you Simba for your comment. I'll review it and make the necessary changes.
|
I looked at your homework, looks great, thanks for the help |
Javascript Core 1 - Week 1 FeedbackWell done on completing the homework Douglas! Git StatusTotal Commits : 28 Exercises Comments
Mandatory Homework CommentsExcellent job on the exercises and mandatory homework. Good use of functions, their paramters and your use of the let and const keywords Links |
|
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. |
Your Details
Homework Details