My twitter button doesnt work when I click on my twitter button it open up an undefined tweet not the quote

this is because var “randomQuote” in your JS is empty
Twitter button uses this var (empty) when building URL address

To fix, add to $.getJSON:

randomQuote = data.quoteText;

1 Like

Thanks a lot :slight_smile::grin: