Skip to content

Suggested Changes ♻️  #9

@brytebee

Description

@brytebee

Hi @Mesi21 👋,

You have done an amazing job. 💪💪
I love your UI. 💯 It is so smooth.

Suggested Changes ♻️

However, there are a few suggested changes you should consider making

  • Rather than using the window.location.reload();, consider calling the displayTasks() functions and clear the list before looping to avoid list duplication.
    window.location.reload();

    window.location.reload();

    window.location.reload();
  • Rather than use add.appendChild(newBtn); a couple of times on the same node element, consider using append which allows appending multiple children.
    add.appendChild(addNewTodo);
    add.appendChild(newBtn);
    taskArea.appendChild(header);
    taskArea.appendChild(add);

Happy hacking 😏😏😏

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions