-
-
Notifications
You must be signed in to change notification settings - Fork 480
London10_OLHA-DANYLEVSKA_JavaScript-Core-1-Coursework-week1 #521
base: master
Are you sure you want to change the base?
Conversation
extra/1-currency-conversion.js
Outdated
| function convertToUSD() {} | ||
| function convertToUSD(amount) { | ||
| return amount * 1.4; | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a very small comment but it is customary to not add any extra lines if not needed, so you can erase these lines.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @mcarballopacheco Thanks for your comment, could you please clarify which lines I can erase?
Thanks)
| "Very doubtful." | ||
| ]; | ||
|
|
||
| let answersArray = [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice!
| //The concat() method is used to merge two or more arrays. This method does not change the existing arrays, but instead returns a new array. | ||
|
|
||
| function concatenate(firstWord, secondWord, thirdWord) { | ||
| return firstWord + ' ' + secondWord + ' ' + thirdWord; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good. You could have also used .concat.
mcarballopacheco
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work!
added separate variables in "good" code
RihannaP
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good job!
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?