Build a Random Quote Machine ---- HELLPPP

Tell us what’s happening:
For some reason my new quote button isn’t working, as no quote pops up when clicked, not sure where the problem is in my code. Would love to get another pair of eyes on this, any suggestions/tips are very much appreciated!!

Here is a link to my codepen,

https://codepen.io/DevinCassidy/pen/joYZxM

Your code so far

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.103 Safari/537.36.

Link to the challenge:
https://learn.freecodecamp.org/front-end-libraries/front-end-libraries-projects/build-a-random-quote-machine

Always look at your browser’s console first (Ctrl+Shft+J in Chrome on Windows). You have tried to randomNumber which is only accessible inside your newQuote function.

Also, I notice you are using jQuery syntax but you have not added the jQuery library to your project.

1 Like