Skip to content

Sheffield | 26-ITP-Jan | Mahammad Osman| Sprint 2 | Coursework#1206

Open
Darkidd77 wants to merge 11 commits intoCodeYourFuture:mainfrom
Darkidd77:coursework/sprint-2
Open

Sheffield | 26-ITP-Jan | Mahammad Osman| Sprint 2 | Coursework#1206
Darkidd77 wants to merge 11 commits intoCodeYourFuture:mainfrom
Darkidd77:coursework/sprint-2

Conversation

@Darkidd77
Copy link

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

completes the Week 2 coursework, focusing on identifying, predicting, and resolving syntax and logic bugs across the provided error and debug exercises.

@Darkidd77 Darkidd77 added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Mar 6, 2026
if (hours > 12) {
return `${hours - 12}:00 pm`;
let hours = Number(time.slice(0, 2)); // if its const it will throe an TypeError you cant assign a const variable later on
const minutes = time.slice(3, 5);
Copy link
Contributor

Choose a reason for hiding this comment

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

We could also extract the last two characters as time.slice(-2).

Copy link
Author

Choose a reason for hiding this comment

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

I see, yes it's a better way. Thank you

@cjyuan cjyuan 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 Mar 7, 2026
@Darkidd77 Darkidd77 added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Mar 7, 2026
@cjyuan
Copy link
Contributor

cjyuan commented Mar 8, 2026

Changes look good. Well done.

@cjyuan cjyuan added Complete Volunteer to add when work is complete and all review comments have been addressed. and removed 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. labels Mar 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Complete Volunteer to add when work is complete and all review comments have been addressed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants