Skip to content

London | 26-ITP-Sep | Ebrahim Moqbel | Sprint 1 | Refactoring-Dead-Code CYF-1066 - #1669

Open
Ebrahim-Moqbel wants to merge 2 commits into
CodeYourFuture:mainfrom
Ebrahim-Moqbel:refactoring-Dead-Code
Open

Ebrahim-Moqbel wants to merge 2 commits into
CodeYourFuture:mainfrom
Ebrahim-Moqbel:refactoring-Dead-Code

Conversation

@Ebrahim-Moqbel

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

Task code

CYF-1066

Changelist

refactored the dead code

@Ebrahim-Moqbel Ebrahim-Moqbel added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Oct 9, 2026
@hackertainment hackertainment 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 Oct 9, 2026
Comment thread dead-code/exercise-1.js
Comment on lines -15 to +13
const greetingMessage = sayHello(greeting, testName);

console.log(greetingMessage); // 'hello, Aman!'
console.log(sayHello(greeting, testName)); // 'hello, Aman!'

@hackertainment hackertainment Oct 9, 2026 •

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

While using one line may look better in this case, there is nothing wrong with the original code using two lines. In some cases with larger code base, having a variable to store the return value may even be a better choice sometimes.

@hackertainment

Copy link
Copy Markdown

Thank you for your coursework. You have completed this PR successfully. Keep it up :-)

@hackertainment hackertainment 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 Oct 9, 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