We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 670779a commit 0015e40Copy full SHA for 0015e40
1 file changed
Sprint-3/quote-generator/quotes.js
@@ -492,7 +492,7 @@ const quotes = [
492
493
// call pickFromArray with the quotes array to check you get a random quote
494
495
-const randomQuote = pickFromArray(quotes);
+const randomQuote = quotes[Math.floor(Math.random()*quotes.length)];
496
497
const quote = document.getElementById("quote");
498
quote.innerText = randomQuote.quote;
@@ -502,7 +502,7 @@ author.innerText = randomQuote.author;
502
503
const button = document.getElementById("new-quote");
504
button.addEventListener("click", () => {
505
- const randomQuote = pickFromArray(quotes);
+ const randomQuote =quotes[Math.floor(Math.random()*quotes.length)];
506
507
508
0 commit comments