I can't get the twitter part of my random quote machine to work

I’ve nearly finished my random quote machine, and I’m quite pleased with the outcome, but no matter what I do I can’t tweet the quote… Could someone point me in the right direction?

Here is my pen: https://codepen.io/hughwin/pen/PGNqNr

Hello. I just finished this project pretty recently so it is still fairly fresh in my mind. I am still new to this but would like to try to help. On line 13 in your JavaScript you have console.log(quote). When I pull it up in my console it gives me a reference error, saying json is not defined.

I am thinking that your problem might be stemming from how you defined the quote variable. The function in your twitter button/link looks fine to me. There should be another way to select and store the content of your quote in that variable. That way, when you console.log() your quote it should return it in a string.

Thank you @whitewatergeek27. Now it is working by getting quote and author from HTML class.