File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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!
3029const quotes = [
@@ -495,8 +494,6 @@ const quotes = [
495494 } ,
496495] ;
497496
498-
499-
500497function showRandomQuote ( ) {
501498 const randomQuote = pickFromArray ( quotes ) ;
502499 quoteEl . textContent = randomQuote . quote ;
@@ -506,10 +503,7 @@ function showRandomQuote() {
506503function 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 ) ;
You can’t perform that action at this time.
0 commit comments