Day 125 of #130DaysOfCode ✅ Built a simple Add to Cart page using HTML, CSS, and JavaScript. What I worked on today: Created a basic UI using Bootstrap layout utilities Used JavaScript DOM manipulation to dynamically add items to a list Captured user input using input.value Handled button click with an event-triggered function Created and appended list items using createElement() and appendChild() Reset input field after each add action for better UX Key learnings: How user input flows from UI → JavaScript → DOM Importance of clearing input after state updates How small interactive features are built step by step Why this logic is simple but forms the base of real cart systems Limitations (that I’m aware of and will fix next): No validation for empty input No remove/edit functionality No data persistence Next steps: Add input validation Add delete button for each cart item Improve structure and UX #JavaScript #DOMManipulation #FrontendDevelopment #WebDevelopment #LearningInPublic #130DaysOfCode #NxtWave

To view or add a comment, sign in

Explore content categories