Quote Machine Issue

Hello Everyone!

I am having a problem with making my quote machine work. I have been looking at this code for hours.
Now, I am going to suck up my pride and ask for help.

Where is my error in the html and javascript?
I know it is somewhere in there. PLEASE I NEED HELP!
Here is my code below:

If you are using Chrome, then use Ctrl+Shft+I to view the browser’s console. Then you will see where the error is.

1 Like

Check your scope (placement of curly braces) and jQuery selector syntax (classes should start with .).

Also, consider keeping all your quote/author data in a single array of objects — it’s cleaner, more logical, and less error-prone that way (you can refer to quotesArray[index].author and quotesArray[index].quote or similar).