Front End Development Libraries Projects - Build a Random Quote Machine

My code is not running at all and neither does it have any error messages.

Your code so far

Your browser information:

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

Challenge: Front End Development Libraries Projects - Build a Random Quote Machine

Link to the challenge:
https://www.freecodecamp.org/learn/front-end-development-libraries/front-end-development-libraries-projects/build-a-random-quote-machineRay’s pen

Two things I noticed in your code:
The twitter-button should be an a tag, so remove the div .
And I couldn’t find any specific option to retrieve the text inside your JS file. Might want to take a look at it.

I actually encountered a similar problem when I was doing the project. Funny thing is sometimes the test were passing even though my Quotes weren’t showing up.

In my case I defined an Array of Quotes & Authors , then tried to retrieve from that array.

1 Like
  • You have a bunch of invalid HTML. Use proper HTML elements.

  • You need to set the text content of the two elements #text and #author using the correct data for each of them.

  • .hide() sets display: none on an element. Setting its content afterward is not going to change that.

  • Using white color for the text on a white background doesn’t really make sense.

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.