Do I need to use the AJAX for Random Quote Machine

I can get my project to work just fine with what I know. But on the example code, they use AJAX. And AJAX hasn’t been taught yet.

Is it doable to just use an array for this project?

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

Challenge: Build a Random Quote Machine

Link to the challenge:

Hi @aquamanly .
I don’t think using AJAX is a requirement for the project. It doesn’t matter whether you use it or not. Provided you can get the tests to pass.

2 Likes

Hi @aquamanly !

There are dozens of ways to build the quote machine.
The example is just one way to do it.

I didn’t use AJAX and it works fine. :grinning:

1 Like

I suggest just sticking the quotes in an array. No need to complicate it with an API.

1 Like

Yes, definitely get it working exactly the way you want using an array of quotes. Pass all the tests. Get our feedback and make changes as necessary. Feel good about a job well done.

Then fork a copy of your project, find a quote API that you can use, read the fetch docs, and have fun learning how to do something new.

1 Like

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