every … seconds: the stopwatch
Section 5: TimeLesson 5.1 · ⏱ 8 min


⏱ every 1 seconds is an event that works by itself like a clock, without anyone tapping. Change the number to 0.1 so it counts faster.
📌 Another example: a countdown
Every second the number goes down, and at zero: Go!



✍️ Practise
The challenge: the timer.
✍️ Practise here in the lesson✖ Close the labor open the lab in a new page ↗
🎯 Challenge yourself
Easy
A clock: every second the number goes up 1.
👀 Show the solution🙈 Hide the solution



Result: the number goes up every second.
Medium
A blinking star: every half second it appears and disappears.
👀 Show the solution🙈 Hide the solution



Result: it appears and disappears.
Hard
A stopwatch with two buttons: start and stop.
👀 Show the solution🙈 Hide the solution



Result: it counts, then stops.

