Skip to content

Commit 616fedc

Browse files
delet the commented code lines
1 parent 77823e5 commit 616fedc

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

Sprint-3/quote-generator/quotes.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ function pickFromArray(quotes) {
2424
return quotes[Math.floor(Math.random() * quotes.length)];
2525
}
2626

27-
2827
// A list of quotes you can use in your app.
2928
// DO NOT modify this array, otherwise the tests may break!
3029
const quotes = [
@@ -495,8 +494,6 @@ const quotes = [
495494
},
496495
];
497496

498-
499-
500497
function showRandomQuote() {
501498
const randomQuote = pickFromArray(quotes);
502499
quoteEl.textContent = randomQuote.quote;
@@ -506,10 +503,7 @@ function showRandomQuote() {
506503
function setup() {
507504
showRandomQuote();
508505

509-
// quoteEl.addEventListener("click", showRandomQuote);
510-
// authorEl.addEventListener("click", showRandomQuote);
511506
newQuoteBtn.addEventListener("click", showRandomQuote);
512507
}
513508

514-
515-
window.addEventListener("load", setup);
509+
window.addEventListener("load", setup);

0 commit comments

Comments
 (0)