Ask coding questions

← Back to all posts
Javascript SyntaxError: Unexpected identifier
Keegooo

I keep getting this error and i've looked over my code multiple times but I can't seem to find an error in the code. Help would be greatly appreciated :D
https://repl.it/@Keegooo/click

Answered by Vandesm14 [earned 5 cycles]
View Answer
Voters
ViljarHole
Keegooo
Comments
hotnewtop
Vandesm14

On line 14, there is an extra space between Eleme and ntById
On line 19 and 20 there are missing semicolons

Other than that everything should work :)

Please upvote this if it helped you out

Keegooo

@Vandesm14 Thank you i'm so blind