Day 10 of #JavaScript30 Today I learned how Shift + checkbox selection works using vanilla JavaScript. When selecting one checkbox and then holding Shift while selecting another, all the checkboxes in between get selected automatically — similar to inbox selection behavior. What I practiced today: • Handling keyboard events (shiftKey) • Tracking the previously selected checkbox • Applying logic between two selected elements • Working with multiple checkboxes using JavaScript Small feature, but good logic practice. #JavaScript30 #JavaScript #WebDevelopment #LearningInPublic #HTML #CSS #VanillaJS

To view or add a comment, sign in

Explore content categories