Build a Random Quote Machine / Problem with twitter button

Tell us what’s happening:
Hello, I’m working on the project for days now, I managed to solve each problems one by one except this, I really don’t see what’s happening

The twitter button is displayed, but when I click on new quote it still share the quote that was loaded on the page loading, and the two tests about the button don’t work (the 5 and 10) it’s like the button don’t even exist :slightly_frowning_face:

Thanks by advance :slightly_smiling_face:

Your code so far
I used codeSandBox https://codesandbox.io/s/random-quote-ykoly

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36.

Challenge: Build a Random Quote Machine

Link to the challenge:

Delete

const script = document.createElement("script");
script.src = "https://platform.twitter.com/widgets.js";
script.async = true;
document.body.appendChild(script);

and try again

2 Likes

Woohoo \o/ that was it ! the project passes all the tests !Thank you so much

I added this code just so the button take the design of twitter, never imagined that could make a problem :thinking:

Thank you very much iiiked :slight_smile: