4. Debugging: Fixing Mistakes

Course 3

Be a Bug Hunter! 🐞

A "Bug" is just a mistake in the code. Debugging means finding the mistake and fixing it.

Don't Worry!

Everyone makes mistakes! Even the best coders in the world. Fixing bugs is like solving a puzzle. It makes you smarter!

🕵️‍♂️🐛

🎮 Mini Game: Find the Bug

Read the instructions for "Drawing a Square". One step is WRONG. Click the bug to fix it!

Program: Draw Square ⬜

1. Move Forward 10 steps ⬆️
2. Turn Right 90 degrees ➡️
3. Move Forward 10 steps ⬆️
4. Turn LEFT 90 degrees ⬅️ (Wait, what?)
5. Move Forward 10 steps ⬆️
⬅️ Previous