SyntaxError: Unexpected token (9:23)

Why is there an error in line 9?!
Added a semi-colon at the end and still get the error.
https://studio.code.org/projects/gamelab/T6g2whx4RMU0UDG_RHSpj-WBZAPQyDlgDtgKQFAZrB8/edit

Sometimes when coding, the error shows up in a line of code that is correct but is referencing another line of code that has the error. Take a look at the regularPolygon command that the fill command is trying to fill. Can you see what needs to fixed there?

1 Like

Correct - You are missing semi colons on all the lines that have the yellow triangle. Yes, code studio sometimes shows the red square after errors.

1 Like