Manchester | 26-ITP-May | Yee Man Tsang | Sprint 1 | Coursework#1335
Manchester | 26-ITP-May | Yee Man Tsang | Sprint 1 | Coursework#1335lintsang wants to merge 15 commits into
Conversation
LonMcGregor
left a comment
There was a problem hiding this comment.
Can you update with the rest of the mandatory sprint 1 exercises please?
|
Thanks a lot for your reminder. I mistakenly missed the other folders of assignments. Now it is finished. |
It's finished. Please check. |
LonMcGregor
left a comment
There was a problem hiding this comment.
Good work, good explanations. Some tasks need another attempt, see my comments.
|
|
||
| //TypeError: Assignment to constant variable. | ||
| //This error is caused by the wrong reassignment of variable 'age'. It is a constant that cannot be reassigned. | ||
| //So the error prompted when the second line code try to reassign the variable value. No newline at end of file |
There was a problem hiding this comment.
How would you change "const" to fix it?
| // Read the code and then answer the questions below | ||
|
|
||
| // a) How many function calls are there in this file? Write down all the lines where a function call is made | ||
| // There is 3 function calls in line 4, 5 and 10. Number() and console.log() both are the function. |
There was a problem hiding this comment.
These are function calls, good that you found them. Are there any more to find? How many in total?
| // Line 4 is calculating the quotient of the calculation (8784-remainder) divided by 60 to find the movie length in minute. That will be later used to find the display minute in the Hour:Minute:Second format. | ||
|
|
||
| // e) What do you think the variable result represents? Can you think of a better name for this variable? | ||
| // I think the original movie length is in second and this code is to calculate the display of movie length in the Hour:Minute:Second format like what what we see in a normal movie information. |
There was a problem hiding this comment.
Good explanation, what name could we give to the variable to represent this?
|
The changed files in this PR don't match what is expected for this task. Please check that you committed the right files for the task, and that there are no accidentally committed files from other sprints. Please review the changed files tab at the top of the page, we are only expecting changes in this directory: If this PR is not coursework, please add the NotCoursework label (and message on Slack in #cyf-curriculum or it will probably not be noticed). If this PR needs reviewed, please add the 'Needs Review' label to this PR after you have resolved the issues listed above. |
|
Thanks again for the feedback. I have recorrect all of it. |
|
The changed files in this PR don't match what is expected for this task. Please check that you committed the right files for the task, and that there are no accidentally committed files from other sprints. Please review the changed files tab at the top of the page, we are only expecting changes in this directory: If this PR is not coursework, please add the NotCoursework label (and message on Slack in #cyf-curriculum or it will probably not be noticed). If this PR needs reviewed, please add the 'Needs Review' label to this PR after you have resolved the issues listed above. |
|
Good answers for this, this task is complete. However, I see you've got a message from the bot indicating some incorrect files were changed. Do you know how to resolve that? |
Sorry I mistakenly changed the Sprint 2 files. I tried to fix this but cannot find any resources from google can solve it. Reverting a commit cannot be found on my pull request. Can you give me some clue what I can do? The only solution I can think of is to close this pull request, redo all the steps in exercise and make a new pull request. However, I worried it wastes your time to review my answer all over again. |
|
@lintsang We have a brand new guide to help with this situation: https://curriculum.codeyourfuture.io/guides/reviewing/fixing/ Let me know if that makes sense or if extra guidance is needed |
Learners, PR Template
Self checklist
Changelist
Follow the instruction of Sprint 1 Coursework and work on the exercises in 4 folders