Skip to content

London | 26-ITP-Jan | Miriam Jorna | Sprint 3 | Dead Code #1254

Open
miriamjorna wants to merge 3 commits intoCodeYourFuture:mainfrom
miriamjorna:coursework/sprint-3-dead-code-v2
Open

London | 26-ITP-Jan | Miriam Jorna | Sprint 3 | Dead Code #1254
miriamjorna wants to merge 3 commits intoCodeYourFuture:mainfrom
miriamjorna:coursework/sprint-3-dead-code-v2

Conversation

@miriamjorna
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

This PR has already been reviewed by @Edu-Vin, but needed to be resubmitted to get rid of some persistent deleted Sprint-2 directories as the branching-off wasn't as clean as I had imagined.

NB I also have a directory ready for you with the 1+3 emails and the rejection reflection, plus proof of demos given and attended, and peer pair working.
Thanks for your time!

@miriamjorna miriamjorna added 📅 Sprint 3 Assigned during Sprint 3 of this module 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. Module-Structuring-And-Testing-Data The name of the module. Core This is a core task and should be completed by all trainees labels Mar 12, 2026
Copy link

@SlideGauge SlideGauge left a comment

Choose a reason for hiding this comment

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

Overall dead code removed correctly, I got a couple of minor notes about the style, please address them and that will be ok


let testName = "Jerry";
const greeting = "hello";
const testName = "Aman";

Choose a reason for hiding this comment

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

Nice catch Jerry is not needed


function sayHello(greeting, name) {
const greetingStr = greeting + ", " + name + "!";
const sayHello = (greeting, name) => {

Choose a reason for hiding this comment

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

the task was to remove dead code, whilst usage of arrow function style here is clever, it goes beyond the task, could you revert it please?

const greetingMessage = sayHello(greeting, testName);

console.log(greetingMessage); // 'hello, Aman!'
console.log(greetingMessage); // 'hello, Aman!' No newline at end of file

Choose a reason for hiding this comment

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

Missing end of line

@@ -2,13 +2,8 @@
// The countAndCapitalisePets function should continue to work for any reasonable input it's given, and you shouldn't modify the pets variable.

Choose a reason for hiding this comment

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

Task 2 is nicely done

@SlideGauge SlideGauge removed the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Mar 15, 2026
@miriamjorna miriamjorna added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Mar 15, 2026
@miriamjorna
Copy link
Author

Both changes implemented as instructed. Thank you!

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

Labels

Core This is a core task and should be completed by all trainees 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. Reviewed Volunteer to add when completing a review with trainee action still to take. 📅 Sprint 3 Assigned during Sprint 3 of this module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants