Missing Semicolon - Expected an Identifier Need Help

Expect an Identifier and Instead saw ‘}’. Missing semicolon. Expect an Identifier and Instead saw ‘}’.

Getting a syntax error but don’t see the error as per the snapshot code:

Appreciate your guidance and inform me of my mistakes.

Thanks in advance.

Hello, and welcome to the forums!

It’s difficult to see the code, but it looks like you copy/pasted in a block of code that left areas for you to fill in.

image

Those empty blocks of code need to be filled in. At the very least, you’ll need to comment out the ... that was used as a filler so JavaScript doesn’t try to interpret that as code.

1 Like

Hi,

Thanks for pointing out and yes, you’re right I need to fill up the comment for the “…” and it works!