TalentJR apps
Apps wait for events: things that happen, like a tap on a button, a key being typed, a timer ticking or a screen opening. Each event can have a handler — a small block of code that runs every time the event happens. In our code, button.onTap = function () { … } sets the code to run on each tap. To predict what the app shows, run the handler once for every tap and follow the values.
✓ You passed this lesson’s test.
When this, do that — “every event (a tap, a timer, typing) runs its handler code”
Use it for: Making buttons do something: counters, like buttons, switches and greetings.
Check: 3 → 5 → 7 → 9 → 11 → 13 ✓
▶ Watch it animatedWork it out in your head or on paper, type the answer and press Check. Stuck? Press “Show me how”.
Right: 0 · Tried: 0
20 questions. Check each answer, then go to the next one. Get 16 or more right to pass.
🏅 Sign in with Google to earn the 👆 Event Handler Hero badge when you pass — and a certificate when you finish all 8 lessons of Part 3 · Logic and Building. You can still take the test without signing in.
Why does it work? When should you use it? Ask in English, मराठी or हिंदी.
Sign in with Google to ask Free — 20 questions a day.
Prefer a real teacher? TalentJR teachers take live online classes anywhere in India and visit homes in selected cities. Tell us what you need and our team will call you with timings and fees.