This is my first API-related project. I’m not sure why my code isn’t working in CodePen. I watched a YouTube video where he did the exact same thing and got a new quote every time he clicked the quote button. I managed to achieve my goal with jQuery but wanted to know why this code isn’t working in CodePen. Is there anything else that should be included? or a different thing?Please help.
@snowmonkey@ilenia Yes, you are right, my mistake.
My JavaScript skills are not very good. I have removed JSON from the code, but when I clicked the New Quote button, it still gave the same error. It’s displaying blank quotes on the screen.