Skip to content

Conversation

@HatefEidi
Copy link

@HatefEidi HatefEidi commented Mar 21, 2025

Learners, PR Template

Self checklist

  • I have committed my files one by one, on purpose, and for a reason
  • I have titled my PR with COHORT_NAME | FIRST_NAME LAST_NAME | REPO_NAME | WEEK
  • I have tested my changes
  • My changes follow the style guide
  • My changes meet the requirements of this task

Changelist

creating task, adding completed label to the tasks, and deleting all the completed tasks together.

Questions

Ask any questions you have for your reviewer.

@HatefEidi HatefEidi requested review from ellietms and halilibrahimcelik and removed request for halilibrahimcelik March 21, 2025 17:12
@HatefEidi HatefEidi added 🎯 Topic Problem-Solving 📅 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. labels Mar 21, 2025
@halilibrahimcelik halilibrahimcelik 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 22, 2025
// Function to create list items
function createListItem(todo, index, isCompleted) {
const listItem = document.createElement("li");
listItem.className = 'todo-item';

Choose a reason for hiding this comment

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

like I said in reading-list project, please define your constants at the beginning of your script not inside of your functions.

// Creating the complete/uncomplete button
const completeButton = document.createElement("button");
completeButton.textContent = isCompleted ? 'Uncomplete ❌' : 'Complete ✔️';
completeButton.onclick = () => toggleComplete(index, isCompleted);

Choose a reason for hiding this comment

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

Good way to use ternary operator

populateTodoList();
createParagraph();
}

Choose a reason for hiding this comment

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

Smooth way of handling toggle, and I also like the way you destructure object

Copy link

@halilibrahimcelik halilibrahimcelik left a comment

Choose a reason for hiding this comment

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

Well done everything seems to be okay, you can close this PR.

@HatefEidi HatefEidi 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 Apr 2, 2025
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. 📅 Sprint 3 Assigned during Sprint 3 of this module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants