Glasgow| May-26-ITP | Yat Long Chan | Sprint 2 | Coursework#1361
Glasgow| May-26-ITP | Yat Long Chan | Sprint 2 | Coursework#1361Motorcycle-lab wants to merge 8 commits into
Conversation
This comment has been minimized.
This comment has been minimized.
5 similar comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
13c32ed to
430f087
Compare
LonMcGregor
left a comment
There was a problem hiding this comment.
Good start on this tasks, I have some suggestions and comments in the tasks for you to resolve
For your question
I would suggest to run code, and run it often as you are writing, so you can spot if there are problems.
We don't expect you to remember every single function, the best way is to do lots of tasks, as well as katas, as you read. Writing code as you go is a good way of learning how different functions work.
I also suggest making your comments actual //coments, this way your editor will highlight valid and invalid js more easily
| and return the expression. | ||
|
|
||
| / function multiply(a, b) { | ||
| return (a * b); |
There was a problem hiding this comment.
Do you need to use the brackets here?
|
|
||
| function sum(a, b) { | ||
| return; | ||
| a + b; |
There was a problem hiding this comment.
When you run this code, does it work correctly?
|
|
||
| let newheight = height / 100; | ||
| let num = weight / (newheight ** 2); | ||
| let idea = num.toFixed(1); |
There was a problem hiding this comment.
Is "idea" a good variable name here?
|
|
||
| // Implement a function that: | ||
| function convertToUpperCase(text) { | ||
| const result = text.toUpperCase(); |
There was a problem hiding this comment.
it is upper cased now, how can you make it "snake case"?
| return `${time} am`; | ||
| } | ||
|
|
||
| else if(hours=== 0o0){ |
Learners, PR Template
Self checklist
Changelist
I have finished the sprint 2 of coursework required to submit in the pull request.
Questions
How do I remember longer function as a beginner ? Should I decompose the sentence structure ? What approaches do you recommend me to understand the fundamental of the function ?