This is a common error that coders can get on a regular basis. This is a compiler error because you receive this error prior to playing your game. There are a number of scenarios that can trigger this error but the most common ways to receive this error is by the following.
- Having the wrong number of closing symbols for your functions and classes. These include ), ], and }.
- Forgetting the semicolon(;) at the end of a line of code.
- Placing operators(+, -, *, /, <, >, =) where they don’t belong.
in addition to these common ways of triggering an Unexpected symbol error, this error can be caused by any character out of place.