Random Quote Machine Headache, Please Help

Random Quote Machine Headache, Please Help
0

#1

Please help me. I’ve gotten to the RQM assignment of the course and it’s been driving me crazy. For some reason, my code won’t load up the API I’m trying to use. Here’s my code and the API I’m trying out.



I’m sorry if the question is stupid, but it’s been driving me crazy for hours now. Please point me in the right direction.


#2

Welllll it looks to me like your URL is missing its beginning, i.e. domain etc.? Just starts with /wp-json?


#3

You need to add jQuery to codepen JS settings.
Your url is missing first part.
You are missing parenthesis after Math.random();
You need to remove parenthesis after getMyQuote in btn2 event listener.


#4

I copy-pasted the URL from the site with the API. I guess the domain was implied…


#5

Is regular JQuery enough? Or should I include JQuery UI?


#6

For your project regular is enough.


#7

Thank you for your help! It still won’t work, but you helped me get rid of those little syntax errors that always mess me up. Thank you