DEV Community

Cover image for Building My First To-Do List App with JavaScript
Chibuikem Ugwu
Chibuikem Ugwu

Posted on

Building My First To-Do List App with JavaScript

Building My First To-Do List App with JavaScript

I built a simple To-Do List App where you can add tasks, mark them as done, and delete them. But there was a catch—everything disappeared on refresh! 😅

How It Works

✅ Add a task through a form
✅ Mark tasks as completed with a checkbox
✅ Delete tasks with a button

I used HTML, CSS, and JavaScript to bring it to life.

Biggest Challenges & Fixes

❌ Form refreshing on submit → Solved with event.preventDefault()
❌ Incorrect checkbox handling → Switched from click to change event
❌ Struggled with setAttribute('onclick') → Used addEventListener instead

Each bug taught me something new! 🚀

What’s Next?

I plan to store tasks in localStorage so they don’t disappear on refresh.

I plan to improve it's responsiveness so it can accommodate more tasks.

Check out the User-Interface and code and let me know what you think! What would you improve?💭

💻 Deployed the app on Vercel! Try it out here 👉 https://to-do-list-coral-three-64.vercel.app/

📂 Code is open-source—check out the repo on GitHub: https://github.com/cvictorugs/mini-projects/tree/main/to-do-list

📝 Wrote a full breakdown of the process on Medium: https://medium.com/@cvictorugs/building-my-first-to-do-list-app-with-html-css-and-javascript-b008dd8f84ec

What would you improve in this app? I’d love to see it! 🚀 Drop your link in the comments or tag me on Twitter: https://twitter.com/cvictorugsDEV LinkedIn : https://www.linkedin.com/in/chibuikem-victor-ugwu-b9710a344?trk=contact-info

Top comments (0)

Cloudinary image

Optimize, customize, deliver, manage and analyze your images.

Remove background in all your web images at the same time, use outpainting to expand images with matching content, remove objects via open-set object detection and fill, recolor, crop, resize... Discover these and hundreds more ways to manage your web images and videos on a scale.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay