Error: [typescript] expression unexpected

While I was working on debugging logic errors, the code runs fine, but the error I found is ‘[typescript] expression unexpected’ at the last line of the last if/else block. What did that error come from?

I think it’d be easier to help if you could share your code as well as the error line displayed by the terminal. Thanks!