Syntax Error Unexpected token

Hi, I’ve been trying to do the “race day” project code below:

Screenshot 2024-01-15 5.34.40 PM

and I got the Syntax unexpected token error plz help

1 Like

At the bottom of the exercises/projects, there is a “Copy to Clipboard” button. After copying your code, you can post it in the forums using the </> button (See [How to] Format code in posts for more details).

You are using the variable early in your conditions, but it doesn’t seem to be declared and initialized anywhere in your screenshot. You do have a registeredEarly variable, so perhaps you intended to use this variable in your conditions instead of the non-existent early.

1 Like

thank you, this worked!

1 Like