Help: My random quote machine

I have to reload the page to get a new quote. How can i fix this problem

@m.janeb1992 Currently, your click event listener for the button element uses the same array index you defined in the following line everytime the button is clicked. How could you make a slight change to the click callback function so that a different array index is used each time?

1 Like

thanks a lot its working now, i declared the Math.random variable inside the event listener function :slightly_smiling_face:

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.