Coding · Grade 10
Events and User Interface State
Learners discover how JavaScript's event loop runs handlers and timers one at a time, use event objects and event delegation, and manage interface state with a single state object, actions and pure update (reducer) functions. They finish by designing responsive and accessible interactions: throttling rapid clicks, preventing double submissions, keyboard support, focus management and announced status messages.
- 4 lessons
- About 90 minutes
- Check what you learned: 8 questions
- Ways to answer: choose an answer, trace code, match pairs, put in order, sort into groups and true or false
What learners will discover
- Explain the event loop and predict the order in which synchronous code, handlers and timers run.
- Use event objects (type, target, key) and event delegation to handle events for many elements.
- Manage interface state with a single state object, actions and pure update functions.
- Design responsive, accessible interactions: throttling or debouncing, preventing double actions, keyboard support and status announcements.
Lessons
-
The event loop 6 steps3 practiceabout 22 min
-
Event objects and delegation 5 steps3 practiceabout 20 min
-
State, actions and updates 5 steps3 practiceabout 22 min
-
Responsive and accessible interactions 4 steps3 practiceabout 18 min
-
Check what you learned 8 questions at the end
Keep exploring
More 10th grade coding
- 10th Grade Coding Worksheets11 printable worksheets
Guide for grown-ups
- How to start homeschooling: a step-by-step guide for familiesA guide for parents · 7 min read