#unexpected token

7 messages · Page 1 of 1 (latest)

midnight geyser
#

i'm working on the Annalyn's Infiltration problem in javascript. i keep getting this error message:

Unexpected token (87:1)

` 85 | }
86 | else return false

87 | }
| ^`

the caret at the end is just pointing to the end of a curly bracket. what could be wrong? i went through the code and i'm pretty sure all the brackets are accounted for. could something else be wrong? i can post the whole code if need be. thanks~!

tawny belfry
#

It would be helpful if you shared the entire function. Or even better, the entire code. (Please use a codeblock and not a screenshot.)

#

There might be an unmatched { or }

tawny belfry
#

Ping?

drowsy shoal
#

missing closing bracket. the IDE says that on line 87.

midnight geyser
#

@tawny belfry i got it but thank you anyway~