Random Quote machine - Help with getJSON

Random Quote machine - Help with getJSON
0.0 0

#1

So I’ve been bashing my head into this for a couple days now, and I just can’t seem to make the getJSON function work. I’m certain that I’m missing something small and stupid, but I just don’t know enough to figure out what it is… It could very well be that the API I’m trying to call is wrong (though I’ve tried a few). If anyone could take a look at my codepen and give me some pointers, I would be grateful!

My pen is here:
https://codepen.io/DogHouseDaddy/pen/VXYojR

Thank you!


#2

When ever your code does not work as you expect, always check the browser’s console (Ctrl+Shft+J in Chrome) to look for any error messages related to your code. If you do that, you will see an error message like:

Uncaught ReferenceError: $ is not defined at pen.js:1

Instead of me just telling what to fix, can you tell me what the $ represents in your JavaScript?


#3

Thank you! I was ignoring the console for some reason. Sometimes we have to have the obvious pointed out to us I guess. I loaded the jquery libraries and I’m now able to make the get request… Next is making the API work. Thanks again.

*edit - I’ve finished this challenge now. You can check it out at the same link if you are interested. It’s bare bones, but the functionality is there. One last time, thanks for your help!