I think you have to remove the semicolon at the end of line 15. From what I see, this is not a logic error, rather than a syntax error.Looking at the error on the bottom, it's expecting a '(' before the '{'.
7.8m questions
10.5m answers