Skip to content

Sheffield | 26-ITP-jan | Richard Frimpong | Sprint 3 | Dead Code#1256

Open
Richiealx wants to merge 1 commit intoCodeYourFuture:mainfrom
Richiealx:coursework/sprint-3-dead-code-redo
Open

Sheffield | 26-ITP-jan | Richard Frimpong | Sprint 3 | Dead Code#1256
Richiealx wants to merge 1 commit intoCodeYourFuture:mainfrom
Richiealx:coursework/sprint-3-dead-code-redo

Conversation

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

Completed the Sprint 3 dead code task.

Changes made

  • Removed unreachable and redundant code from Sprint-3/3-dead-code/exercise-1.js
  • Removed unused code from Sprint-3/3-dead-code/exercise-2.js

Testing

I tested the changes by running:

node Sprint-3/3-dead-code/exercise-1.js
node Sprint-3/3-dead-code/exercise-2.js

Both scripts produced the expected output.

Questions

No questions at this time.

@Richiealx Richiealx added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Mar 12, 2026
// The sayHello function should continue to work for any reasonable input it's given.

let testName = "Jerry";
let testName = "Aman";

Choose a reason for hiding this comment

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

Nice catch we use "Aman" instead of "Jerry"

const greeting = "hello";

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

Choose a reason for hiding this comment

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

Correct, the greetingStr is not needed either

@SlideGauge SlideGauge 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. labels Mar 15, 2026
@SlideGauge
Copy link

Complete, nice job

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