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:
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).
2 Likes