Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

50Projects-HTML-CSS-JavaScript : To do list #36

Merged
merged 8 commits into from
Aug 8, 2024
Merged

50Projects-HTML-CSS-JavaScript : To do list #36

merged 8 commits into from
Aug 8, 2024

Conversation

tajulafreen
Copy link
Owner

Title: To-Do List Application with JavaScript Modules

This pull request refactors the To-Do List application by modularizing the JavaScript code into separate modules. The refactoring enhances code organization, readability, and maintainability. The following changes were made:

main.js:

  • Created functions to handle adding and deleting tasks.
  • Exported addTask and deleteTask functions for use in other modules.

filters.js:

  • Created a function to filter tasks based on the selected category.
  • Exported filterTasks function for use in index.js.

index.js:

  • Imported functions from main.js and filters.js.
  • Set up event listeners for adding tasks, filtering tasks, and dynamically handling task deletion.
  • Used event delegation to manage delete button clicks.

@tajulafreen tajulafreen merged commit 4902908 into main Aug 8, 2024
5 checks passed
@tajulafreen tajulafreen deleted the ToDoList branch August 8, 2024 20:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant