From c0053a2e6a8458164d8c3f885881e7863676ae1b Mon Sep 17 00:00:00 2001 From: Andrew Artajos Date: Thu, 7 Mar 2019 09:09:54 +1100 Subject: [PATCH] fix(readme): Eventing -> Events, removed () from displayMatches (#98) --- step1-03/demo/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/step1-03/demo/README.md b/step1-03/demo/README.md index a0048ac..9a24da1 100644 --- a/step1-03/demo/README.md +++ b/step1-03/demo/README.md @@ -14,7 +14,7 @@ In this demo we are going to cover a few core basics of the language that will h By the end of the demo we'll have covered the following: - Variables -- Eventing +- Events - Functions - Conditionals - Loops @@ -111,7 +111,7 @@ In our example, we want to trigger a function when a button is clicked. To do th ```js const button = document.querySelector('.submit'); -button.onclick = displayMatches(); +button.onclick = displayMatches; ``` You can also combine the two statements together like this: