Skip to content

Commit 69eab09

Browse files
committed
ade the setup function to perform the operations when the page loads.
1 parent 2d49b11 commit 69eab09

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Sprint-3/quote-generator/quotes.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ function randomQuote() {
55
}
66
function setup() {
77
document.getElementById("new-quote").addEventListener("click", randomQuote);
8+
randomQuote();
89
}
9-
setup();
10-
window.addEventListener("load", randomQuote);
10+
window.addEventListener("load", setup);
1111
// DO NOT EDIT BELOW HERE
1212

1313
// pickFromArray is a function which will return one item, at

0 commit comments

Comments
 (0)