Help us find the missing piece?

Line 38 gives an error message “Unexpected token (38:0)”

Can anyone help us find the wrong/missing semicolon or bracket?

Can you post the “share” link to the code? The link in your first message is just to the sign-in page for code.org.

On line 37 you are missing { and the rest of that function.

On line 38 the third parameter to onEvent is a function. You are missing function () {

On line 42 you will need }) to close the function expression you started on line 38.

Thanks! Along with your help we got it figured out.