Please help me to get this computer game code to work correctly

Shouldn’t it be }, 10); as it’s the end of the setInterval function?

You’ve typed Sytle instead of ‘Style’.
(bird) doesn’t seem to be defined anywhere either. Should there be something like this at the start of the js?

var bird = document.getElementById("bird");

You’ve made the same ‘Sytle’ typo here also (getComputedSytle(hole))

I threw the updated code into a codepen to make it easier for the js gurus to debug. :slight_smile:

1 Like