Bug Hunt
Look at the code snippet and click the line with the syntax error, or say that it's all correct.
- Pergunta
- 1/10
- Pontuação
- 0
Problemas 1
Clique na linha com o erro Toque na linha com o erro ou em Sem erros se estiver tudo bem Acerta 7 em 10 para ganhares
Each round has 10 code snippets, in JavaScript, Python or PHP, from the easiest to the hardest. Pick the language at the top of the play area, or play with all of them.
Read the code carefully and click the line with the syntax error: an unclosed bracket or brace, a missing comma or colon, a misspelled keyword... If you think it's all correct, press "Sem erros" ("No errors"). On the keyboard, keys 1 to 9 pick the line and 0 says there are no errors.
Once you've answered, the editor's "Problemas" ("Problems") panel shows the error message the language itself would give, the corrected line and why. Get 7 out of 10 right to win the round.
Tip: Count the brackets and braces: each one that opens has to close, in the right order.
Tip: Every language has its own rules: Python uses colons and indentation, PHP needs semicolons and a $ before variables, and JavaScript can almost always do without the semicolon.
Tip: Read the error message too once you've answered: being able to read them gets you halfway to fixing your own programs.
This game is part of a wider trend towards making programming education more playful through gamified error-spotting exercises, an approach made popular by code-learning platforms such as Codecademy (launched in 2011) and CodeCombat (2013), which turned traditionally dry tasks, like finding a syntax error, into game challenges with scores and progression.
Rate this game
No ratings yet
Log in to rateYour stats
Create a free account to keep your wins and your favourite games.
Create a free account →