Skip to content

Commit abfd354

Browse files
committed
replace getElementByID
1 parent 70679cb commit abfd354

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎Sprint-3/quote-generator/quotes.js‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -492,9 +492,9 @@ const quotes = [
492492

493493
// call pickFromArray with the quotes array to check you get a random quote
494494

495-
const quoteElement = document.querySelector("#quote");
496-
const authorElement = document.querySelector("#author");
497-
const buttonElement = document.querySelector("#new-quote");
495+
const quoteElement = document.getElementById("quote");
496+
const authorElement = document.getElementById("author");
497+
const buttonElement = document.getElementById("new-quote");
498498
function updateRandomQuote() {
499499
const randomQuote = pickFromArray(quotes);
500500
quoteElement.innerText = randomQuote.quote;

0 commit comments

Comments
 (0)