"Unexpected token else " error
bgrubert (86)

I have been working on this clicker game in html css and JS, but I am getting an unexpected token else error even though there seems to be nothing wrong.

Ps. Please note that I am only 11 so this is not going to be like a professional code.

Thanks!

You are viewing a single comment. View All
avibeskrowni (29)

You are doing an else if to a function. You may want to change the else if to an if but I'm not sure what you're going for.

avibeskrowni (29)

or maybe indent that else if to make it line up with the if?

avibeskrowni (29)

P.S. Insanely amazing for an 11-year old.

bgrubert (86)

@avibeskrowni You are younger than me!