Skip to content
Advertisement

Syntax Error: Unexpected Identifier

I made some code that wouldn’t work. An error popped up in the Chrome console saying “Syntax error: Unexpected identifier”. Error is on line 19. Here is the code:

JavaScript

Advertisement

Answer

from line 17: add a comma on line 18 as @thg435 mentioned

JavaScript
User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement