| Lesson Plan | |
| Grade: | Date: 17/01/2026 |
| Subject: Information Technology IT | |
| Lesson Topic: Use JavaScript timing events (setTimeout, setInterval) | |
Learning Objective/s:
|
|
Materials Needed:
|
Introduction: Begin with a quick demo of a digital clock that updates every second, asking students what makes it tick. Recall prior learning about functions and the event loop, linking it to timed callbacks. Explain that by the end of the lesson they will be able to create, control, and troubleshoot JavaScript timers. |
Lesson Structure:
|
|
|
Conclusion: Summarise that setTimeout handles one‑off delays while setInterval provides repeated actions, emphasizing the need to clear timers. Students complete an exit ticket describing when to prefer recursive setTimeout over setInterval. For homework, ask them to create a simple slideshow using setInterval with proper cleanup. |
|
Your generous donation helps us continue providing free Cambridge IGCSE & A-Level resources, past papers, syllabus notes, revision questions, and high-quality online tutoring to students across Kenya.