diff --git a/js-essentials/random-ron/script.js b/js-essentials/random-ron/script.js index 78ff925..dc57dff 100644 --- a/js-essentials/random-ron/script.js +++ b/js-essentials/random-ron/script.js @@ -1,8 +1,6 @@ let blockquote = document.querySelector('blockquote'); let button = document.querySelector('button#get-quote'); -getQuote(); - function getQuote () { blockquote.textContent = 'Getting a fresh quote...'; @@ -24,6 +22,8 @@ button.addEventListener('click', function (event) { getQuote(); }); +getQuote(); +