انتقل للمحتوى
Robo EgyptRobo Egypt
☰ Course contents

every … seconds: the stopwatch

Section 5: TimeLesson 5.1 · ⏱ 8 min
When the app opens count = 0, and every second it adds one and shows it
When the app opens count = 0, and every second it adds one and shows it
We waited 3 seconds without tapping
We waited 3 seconds without tapping

⏱ 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!

The design
The design
The blocks
The blocks
In the lab: going down
In the lab: going down
✍️ Practise
The challenge: the timer.
✍️ Practise here in the lessonor open the lab in a new page ↗

🎯 Challenge yourself

Easy

A clock: every second the number goes up 1.

👀 Show the solution
The design
The design
The blocks
The blocks
In the lab
In the lab

Result: the number goes up every second.

Medium

A blinking star: every half second it appears and disappears.

👀 Show the solution
The design
The design
The blocks
The blocks
In the lab
In the lab

Result: it appears and disappears.

Hard

A stopwatch with two buttons: start and stop.

👀 Show the solution
The design
The design
The blocks
The blocks
In the lab
In the lab

Result: it counts, then stops.

Finished the lesson? Mark it so your progress counts.