Skip to content

Manchester | 26-ITP-May | Monsur Abdulrahman | Sprint 3 | Coursework/sprint 3 | Dead Code - #1600

Open
Monsur0001 wants to merge 2 commits into
CodeYourFuture:mainfrom
Monsur0001:dead-code
Open

Manchester | 26-ITP-May | Monsur Abdulrahman | Sprint 3 | Coursework/sprint 3 | Dead Code#1600
Monsur0001 wants to merge 2 commits into
CodeYourFuture:mainfrom
Monsur0001:dead-code

Conversation

@Monsur0001

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

Briefly explain your PR.

Questions

Ask any questions you have for your reviewer. You must remove this section if you have no questions.

illicitonion and others added 2 commits August 1, 2026 16:52
Currently they're the wrong way around, which isn't the point of the
exercise.
@github-actions

This comment has been minimized.

@Monsur0001 Monsur0001 added the Module-Structuring-And-Testing-Data The name of the module. label Aug 1, 2026
@github-actions

This comment has been minimized.

@Monsur0001 Monsur0001 added Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. NotCoursework 📅 Sprint 3 Assigned during Sprint 3 of this module labels Aug 1, 2026
@Stephanieewelu

Copy link
Copy Markdown

Thanks for the cleanup, nice work removing dead code and unreachable statements. A few issues still need fixing before this is ready to merge.

  1. Sprint-1/2-mandatory-errors/4.js
    Blocking: The variable names 12HourClockTime and 24hourClockTime are invalid; JS identifiers can't start with a digit, so this will throw a syntax error. Please rename them to something like twelveHourClockTime and twentyFourHourClockTime.

Also worth standardizing the 12-hour time format (with or without a space before "pm") in case this value gets parsed anywhere downstream.

  1. Sprint-3/3-dead-code/exercise-1.js
    Good catch removing the unreachable log statement and the unused variable. Two things remain:
  • The outer greeting constant is unused since it's shadowed by the function's own greeting parameter. Either remove the outer one or rename it so the intent is clear.
  • The sayHello function is never called or exported, and testName is reassigned but never used. If this is meant to be testable, either export the function or call it directly so its output is visible.
  1. Sprint-3/3-dead-code/exercise-2.js
    The line you removed had a broken arrow function token, so good call cutting that. However, the countAndCapitalisePets function is currently incomplete; it stops partway through, before computing the capitalised list or the "starts with H" filter, and before returning anything.

When you finish it, make sure it doesn't mutate the original pets array, computes results from its own parameter rather than reaching out to the global array, and is exported so tests can import it.

Once these are addressed this should be good to merge 👍

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

Labels

Module-Structuring-And-Testing-Data The name of the module. Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. NotCoursework 📅 Sprint 3 Assigned during Sprint 3 of this module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants