Skip to content

Glasgow | Jan-26 | Elisabeth Matulian | Sprint 3 | Refactoring Dead Code#1008

Open
Elisabeth-Matulian wants to merge 2 commits intoCodeYourFuture:mainfrom
Elisabeth-Matulian:coursework/sprint-3-dead-code
Open

Glasgow | Jan-26 | Elisabeth Matulian | Sprint 3 | Refactoring Dead Code#1008
Elisabeth-Matulian wants to merge 2 commits intoCodeYourFuture:mainfrom
Elisabeth-Matulian:coursework/sprint-3-dead-code

Conversation

@Elisabeth-Matulian
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

Completed dead-code

Questions

N/Q

@github-actions

This comment has been minimized.

@Elisabeth-Matulian Elisabeth-Matulian added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Feb 21, 2026
@github-actions github-actions bot removed the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Feb 21, 2026
@github-actions

This comment has been minimized.

@LonMcGregor LonMcGregor changed the title Glasgow | Jan-26 | Elisabeth Matulian | Sprint 3 | Coursework dead-code Glasgow | Jan-26 | Elisabeth Matulian | Sprint 3 | Refactoring Dead Code Feb 21, 2026
@Elisabeth-Matulian Elisabeth-Matulian added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Feb 21, 2026
@hkavalikas hkavalikas added Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Mar 1, 2026
@hkavalikas hkavalikas self-requested a review March 1, 2026 16:27
const greetingStr = greeting + ", " + name + "!";
return `${greeting}, ${name}!`;
console.log(greetingStr);
//console.log(greetingStr);
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

You are right to highlight this one, but commenting out is not quite the same as deleting; let's address it.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

the line's removed


const pets = ["parrot", "hamster", "horse", "dog", "hamster", "cat", "hamster"];
const capitalisedPets = pets.map((pet) => pet.toUpperCase());
//const capitalisedPets = pets.map((pet) => pet.toUpperCase());
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

You are right to highlight this one, but commenting out is not quite the same as deleting; let's address it.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

the line's removed

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

You have correctly identified a line that should be removed, but you are missing one more.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

done

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

You have correctly identified a line that should be removed, but you are missing one more. Can you see any properties or functions that aren't contributing to your console result of console.log(countedPetsStartingWithH); ?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

done

@hkavalikas hkavalikas added Reviewed Volunteer to add when completing a review with trainee action still to take. and removed Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. labels Mar 1, 2026
@Elisabeth-Matulian Elisabeth-Matulian added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Mar 2, 2026
@hkavalikas hkavalikas added Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. 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 2, 2026
@hkavalikas
Copy link
Copy Markdown

Awesome job

@hkavalikas hkavalikas added Complete Volunteer to add when work is complete and all review comments have been addressed. and removed Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. labels Mar 2, 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