A quiz app
Section 4: ConditionsLesson 4.3 · ⏱ 9 min


💬 show message shows a small message at the bottom of the screen, then it disappears by itself.
📌 Another example: a question with two buttons
Every answer has a button: the right one says “Well done”, and the wrong one vibrates the phone.



✍️ Practise
Project: make a quiz app about a topic you love.
✍️ Practise here in the lesson✖ Close the labor open the lab in a new page ↗
🎯 Challenge yourself
Easy
Type the answer: what is the capital of Egypt?
👀 Show the solution🙈 Hide the solution



Result: Right ✓
Medium
A question with three choices, and the second is right.
👀 Show the solution🙈 Hide the solution



Result: Right ✓
Hard
A password: 1234 opens, anything else shows a wrong message.
👀 Show the solution🙈 Hide the solution



Result: wrong once, then 🔓

