I am trying to solve the “Random Quote Machine” challenge, but I do not know where can I fetch many quotes?Do I need to write them in my JavaScript code?Thanks!
You can hardcode quotes in your project.
There’s also some sources where you can fetch quotes.
You have 2 options for this project.
A) Hard code a bunch of quotes, it’s not recommended as it’s hard to scale with 100s or 1000s of quotes but it works. You only need maybe 5-10 quotes for this project to look nice so hard coding in quotes isn’t a big deal.
B) Use a quote API. A search across the forum will find you lots of sources.
Good luck