Need help for random quote machine (feel discouraged..)

Need help for random quote machine (feel discouraged..)
0

#1

Hello everyone,

I’m really stuck since 3 days with this. I wanted to do it on my own but I feel discouraged now. Don’t know how to proceed, with Json or not, jquery or not… If someone could tell me what is the next step.

Here’s is my code.
my random quote machine

Tkanks


#2

If you want you can search for an api and make a request to it with $.getJSON().

Or you can simply use an array of quotes. You already have the click handler, so every click you take another quote from the array you created.


#3

Thanks for your answer Ben, I’ll try to figure this out with an array even if it seems better to use an api with JSON.