London Class 7 - Adem Alagoz- JavaScript Core 1 - Week 1 - #44
London Class 7 - Adem Alagoz- JavaScript Core 1 - Week 1#44adam-alagoz wants to merge 5 commits into
Conversation
needs semi colon at the end of both code. |
|
In JavaScript, you can technically use capitalized variable names, but the convention is to use lowercase words for variable names, and capitalized words for constructors. |
|
Thanks for your feedback Askin. |
| @@ -1,4 +1,7 @@ | |||
| // Declare your function first | |||
| function divide(num1,num2){ | |||
| return num1/num2; | |||
There was a problem hiding this comment.
Hi Adem, great work, my only small suggestion would be to use consistent indenting across your work (eg your "returns"), so that it reads easier.
There was a problem hiding this comment.
Thanks for your help Bisi.I will do it.
|
|
||
| function convertToUSD() {} | ||
| function convertToUSD(price) { | ||
| return price*1.4; |
There was a problem hiding this comment.
Hi Adem, well done, you have done really great work. just one thing to draw your attention is the indentation. return should be indented 4 space to right as below.
function convertToUSD(price) {
return price*1.4;
}
There was a problem hiding this comment.
Thanks Askin I fixed it but w3schools declares 2 space instead of 4
|
Your coursework submission has been closed because nobody has interacted with it in 30 days. You are welcome to re-open it to get more feedback. |
Your Details
Homework Details