Skip to content

Manchester | 26-ITP-May | Yee Man Tsang | Sprint 1 | Coursework#1335

Open
lintsang wants to merge 16 commits into
CodeYourFuture:mainfrom
lintsang:coursework/sprint-1
Open

Manchester | 26-ITP-May | Yee Man Tsang | Sprint 1 | Coursework#1335
lintsang wants to merge 16 commits into
CodeYourFuture:mainfrom
lintsang:coursework/sprint-1

Conversation

@lintsang

@lintsang lintsang commented Jun 13, 2026

Copy link
Copy Markdown

Learners, PR Template

Self checklist

  • I have titled my PR with Region | Cohort | FirstName LastName | Sprint | Assignment Title
  • My changes meet the requirements of the task
  • I have tested my changes
  • My changes follow the style guide

Changelist

Follow the instruction of Sprint 1 Coursework and work on the exercises in 4 folders

@lintsang lintsang added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Jun 13, 2026

@LonMcGregor LonMcGregor left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you update with the rest of the mandatory sprint 1 exercises please?

@LonMcGregor LonMcGregor added Reviewed Volunteer to add when completing a review with trainee action still to take. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Jun 19, 2026
@lintsang lintsang added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Jun 22, 2026
@lintsang

Copy link
Copy Markdown
Author

Thanks a lot for your reminder. I mistakenly missed the other folders of assignments. Now it is finished.

@lintsang

Copy link
Copy Markdown
Author

Can you update with the rest of the mandatory sprint 1 exercises please?

It's finished. Please check.

@LonMcGregor LonMcGregor left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good work, good explanations. Some tasks need another attempt, see my comments.

Comment thread Sprint-1/2-mandatory-errors/1.js Outdated

//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

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good explanation, what name could we give to the variable to represent this?

@LonMcGregor LonMcGregor removed the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Jun 23, 2026
@lintsang lintsang added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Jun 23, 2026
@github-actions

This comment has been minimized.

@github-actions github-actions Bot removed the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Jun 23, 2026
@lintsang

Copy link
Copy Markdown
Author

Thanks again for the feedback. I have recorrect all of it.

@lintsang lintsang added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Jun 24, 2026
@github-actions

This comment has been minimized.

@github-actions github-actions Bot removed the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Jun 24, 2026
@LonMcGregor

Copy link
Copy Markdown

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?

@lintsang

Copy link
Copy Markdown
Author

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.

@LonMcGregor

Copy link
Copy Markdown

@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

@lintsang lintsang added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Jun 24, 2026
@lintsang

Copy link
Copy Markdown
Author

@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

Many thanks for your help! This guide is very useful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. Reviewed Volunteer to add when completing a review with trainee action still to take.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants