Ask coding questions

← Back to all posts
Anyone know how to fix this problem?
QuickV

In the script.js file,

there is an

error

and

I can't seem to fix it...

Can anyone help?

In the console it says:

SyntaxError: Unexpected string at /script.js:126:3

Answered by OldWizard209 [earned 5 cycles]
View Answer
Voters
QuickV
Comments
hotnewtop
OldWizard209

You have got an array of Chuck Norris stuff. Each element in the array should be separated by a comma. But on line 124, you haven't put a comma after the element, thus creating an error on the next line. Put a comma here:

QuickV

It works! Thank you lol :)... I already went over and checked if there were any missing commas, but I guess I missed one lol :)

@OldWizard209

OldWizard209

hehe, that is why programming is a pain. @QuickV

QuickV