Skip to content

Commit 29bc293

Browse files
some lines were missing on local copy so updated local copy
1 parent e4ad56d commit 29bc293

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

Sprint-3/quote-generator/quotes.js

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
1-
window.addEventListener("DOMContentLoaded", () => {
1+
window.addEventListener("DOMContentLoaded", () => {
22
const quoteElement = document.getElementById("quote");
33
const authorElement = document.getElementById("author");
44
const newQuoteBtn = document.getElementById("new-quote");
55

6-
7-
function displayRandomQuote() {
8-
const randomQuote = pickFromArray(quotes);
9-
quoteElement.textContent = `"${randomQuote.quote}"`;
10-
authorElement.textContent = randomQuote.author;
11-
}
6+
function displayRandomQuote() {
7+
const randomQuote = pickFromArray(quotes);
8+
quoteElement.textContent = `"${randomQuote.quote}"`;
9+
authorElement.textContent = randomQuote.author;
10+
}
1211

1312
newQuoteBtn.addEventListener("click", displayRandomQuote);
1413

0 commit comments

Comments
 (0)