Skip to content

Commit ecba3c6

Browse files
committed
Add DOM element references for quote display functionality
1 parent d5602e4 commit ecba3c6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Sprint-3/quote-generator/quotes.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -491,3 +491,8 @@ const quotes = [
491491
];
492492

493493
// call pickFromArray with the quotes array to check you get a random quote
494+
495+
// getting the input and button elements from the page
496+
const quoteElement = document.getElementById("quote");
497+
const authorElement = document.getElementById("author");
498+
const buttonElement = document.getElementById("new-quote");

0 commit comments

Comments
 (0)