Skip to content

London | 26-ITP-May | Anita Amirhaeri | Sprint 3 | Dead-Code - #1570

Open
anitahy73 wants to merge 2 commits into
CodeYourFuture:mainfrom
anitahy73:coursework/dead-code
Open

London | 26-ITP-May | Anita Amirhaeri | Sprint 3 | Dead-Code#1570
anitahy73 wants to merge 2 commits into
CodeYourFuture:mainfrom
anitahy73:coursework/dead-code

Conversation

@anitahy73

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

Sprint 3 Dead Code

Questions

Removed unreachable code and updated testName variable.
Removed unused code and a function that was not contributing to the final output.
@anitahy73 anitahy73 added Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. 📅 Sprint 3 Assigned during Sprint 3 of this module Module-Structuring-And-Testing-Data The name of the module. labels Jul 26, 2026
Comment on lines -4 to 9
let testName = "Jerry";
let testName = "Aman";
const greeting = "hello";

function sayHello(greeting, name) {
const greetingStr = greeting + ", " + name + "!";
return `${greeting}, ${name}!`;
console.log(greetingStr);
return ${greeting}, ${name}!;
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

In this exercise, you are expected only to delete lines containing unused code.
Could you restore the original code, and then just delete the unused code?

Note: The code you added (line 8) has syntax error.

@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 Jul 28, 2026
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. 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.

2 participants