Skip to content

Commit 0e93ef0

Browse files
added a script tag to index.html to include quotes.js
1 parent 817f811 commit 0e93ef0

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,10 +1,3 @@
1-
function generateQuote() {
2-
const randomQuote = pickFromArray(quotes);
3-
document.getElementById("quote").textContent = `"${randomQuote.quote}"`;
4-
document.getElementById("author").textContent = `- ${randomQuote.author}`;
5-
}
6-
generateQuote();
7-
81
// DO NOT EDIT BELOW HERE
92

103
// pickFromArray is a function which will return one item, at
@@ -498,3 +491,9 @@ const quotes = [
498491
];
499492

500493
// call pickFromArray with the quotes array to check you get a random quote
494+
function generateQuote() {
495+
const randomQuote = pickFromArray(quotes);
496+
document.getElementById("quote").textContent = `"${randomQuote.quote}"`;
497+
document.getElementById("author").textContent = `- ${randomQuote.author}`;
498+
}
499+
generateQuote();

0 commit comments

Comments
 (0)