File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -493,15 +493,15 @@ const quotes = [
493493// call pickFromArray with the quotes array to check you get a random quote
494494
495495function chooseQuote ( ) {
496- const randomQuote = pickFromArray ( quotes )
496+ const randomQuote = pickFromArray ( quotes ) ;
497497
498498 const quote = document . getElementById ( "quote" ) ;
499- if ( quote !== null ) {
500- quote . textContent = randomQuote . quote ;
499+ if ( quote !== null ) {
500+ quote . textContent = randomQuote . quote ;
501501 }
502502 const author = document . getElementById ( "author" ) ;
503- if ( author !== null ) {
504- author . textContent = randomQuote . author ;
503+ if ( author !== null ) {
504+ author . textContent = randomQuote . author ;
505505 }
506506}
507507
@@ -513,7 +513,7 @@ button.addEventListener("click", chooseQuote);
513513const autoGenerate = document . getElementById ( "auto-play-toggle" ) ;
514514let interval = null ;
515515autoGenerate . addEventListener ( "change" , ( ) => {
516- let changeQuoteInterval = 2000
516+ let changeQuoteInterval = 2000 ;
517517 if ( autoGenerate . checked ) {
518518 interval = setInterval ( chooseQuote , changeQuoteInterval ) ;
519519 } else {
You can’t perform that action at this time.
0 commit comments