Postman Script Syntax Error - Unexpected token ';'

Hello,

Kindly assist - i try running scripts both pre request and post response but am consistenly getting the error “SyntaxError: Unexpected token ‘;’”

Note that i typed the code manually and i have tried numerous others but the error always remains the same.

Hey @research-cosmologi12 :waving_hand:t2:

Welcome to the Postman Community :postman:

Do you have any scripts set at the Folder or Collection level? Are there any test assertions anywhere?

What does it say in the Test Results?

It’s difficult to see from that image.

The way I could make this happen, is it you have a pm.test statement in the Collection that isn’t closed out correctly. That would show the response body and show an error in the Tests and the Console.