I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.
You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.
As a future debugging tip, Unexpected Token almost always means that you forgot a closing }, ), ], ', or ". Sometimes it’s a misplaced semicolon.
Those symbols are called “tokens” and what the error is telling you is that it was expecting a specific token and it found a different one that shouldn’t be there before the one it’s expecting. The error message will have a line number, but in this case it’s not amazingly helpful because it is telling you the line that the unexpected token was on, rather than which opening {, (, [, ', or " is missing its partner.