Skip to content

Sheffield | 26-Jan-ITP | Daniel Aderibigbe | Sprint 3 | Todo-list - #1152

Closed
Dan2Clouted wants to merge 2 commits into
CodeYourFuture:mainfrom
Dan2Clouted:todo-list
Closed

Sheffield | 26-Jan-ITP | Daniel Aderibigbe | Sprint 3 | Todo-list #1152
Dan2Clouted wants to merge 2 commits into
CodeYourFuture:mainfrom
Dan2Clouted:todo-list

Conversation

@Dan2Clouted

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

Completed all task

@Dan2Clouted Dan2Clouted added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Mar 31, 2026
}

export function deleteCompleted(todos) {
return todos.filter((todo) => todo.completed === false);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Well done this works nicely. (FYI: instead of checking for false you could also check for !todo.completed but this is a bit of a personal preference and should be handled according to the projects coding convention)

// A callback that reads the task description from an input field and
// append a new task to the todo list.
// A callback that reads the task description from an input field and
// append a new task to the todo list.''

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Why did this line change?

// - Store the reference to the <ul> element with id "todo-list" here
// to avoid querying the DOM repeatedly inside render().
// - This variable is declared here to be close to the only function that uses it.
// Store reference once

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Why did this line change?

// We will create each ToDo list item as a clone of this node.
// - This variable is declared here to be close to the only function that uses it.
const todoListItemTemplate =
// Template reference

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Why did this line change?

@Luro91 Luro91 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 Apr 7, 2026
@illicitonion

Copy link
Copy Markdown
Member

Closing PR because the January ITP run has finished. Feel free to re-open if you're still working on it.

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

Labels

Reviewed Volunteer to add when completing a review with trainee action still to take.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants