Hello, all! I made a random quote generator (with a very limited selection of quotes right now). The JS chooses a random quote from an arrow of objects and, using destructuring, builds a quote using the relevant values. I’ve used setTimeout()
to cycle through the quotes every 3 seconds.
It could be better, of course! Right now, it doesn’t look for duplicates — I’d like to make sure that the same quote isn’t repeated straight after itself – and I’m sure this would be a fair place to use getter and setter methods, but I need to read up on those a bit more.
Anyhow, link to GitHub repository is here.