"Unexpected token else " error
bgrubert (130)

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 a professional code.


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

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 (114)

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

avibeskrowni (114)

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