I have written my code for the random quote generator but unable to produce quotes on my website or in twitter. I suspect there is something wrong with my JS but I have been unable to fix it. I tested my API off line and it works but not in my code. Here is my codepen link:
Hey, i tried to share your quote, it gives undefined, and that is because your Variables are global,
i suggest you make them inside the function as local like i did.
You can always debug your code by checking your browser’s Develeport Tools, in Chrome the shortcut is F12 or you can go Settings -.> More Tools -> Developer Tools. In the Console Tab you can see your errors, console.logs etc.