One Key Piano Bug Hunt! Test your Troubleshooting.
This code won’t run on Code Piano - there is something stopping the computer from being able to interpret it. Can you find it?
This code won’t run on Code Piano - there is something stopping the computer from being able to interpret it. Can you find it?
The 'if' statement has two parts: the condition within the parentheses and the action within the curly braces. Check your purple cards for the 'if' statement there and compare it to the 'if' statement in this bug hunt. What's switched?
This time, the error the computer shows you is pretty helpful. Even if you solve the bug, try to upload the buggy code so you can see the error that the computer shows you. Would it have been useful to you?