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 e4ad56d commit 29bc293Copy full SHA for 29bc293
1 file changed
Sprint-3/quote-generator/quotes.js
@@ -1,14 +1,13 @@
1
- window.addEventListener("DOMContentLoaded", () => {
+window.addEventListener("DOMContentLoaded", () => {
2
const quoteElement = document.getElementById("quote");
3
const authorElement = document.getElementById("author");
4
const newQuoteBtn = document.getElementById("new-quote");
5
6
-
7
-function displayRandomQuote() {
8
- const randomQuote = pickFromArray(quotes);
9
- quoteElement.textContent = `"${randomQuote.quote}"`;
10
- authorElement.textContent = randomQuote.author;
11
-}
+ function displayRandomQuote() {
+ const randomQuote = pickFromArray(quotes);
+ quoteElement.textContent = `"${randomQuote.quote}"`;
+ authorElement.textContent = randomQuote.author;
+ }
12
13
newQuoteBtn.addEventListener("click", displayRandomQuote);
14
0 commit comments