From 76b061ae418437a74b6c1b481819d66ba2c41847 Mon Sep 17 00:00:00 2001 From: Andrew Artajos Date: Sun, 3 Mar 2019 11:59:26 +1100 Subject: [PATCH] fix: docment -> document --- 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 74eb6dd..efc5b24 100644 --- a/step1-03/demo/README.md +++ b/step1-03/demo/README.md @@ -111,14 +111,14 @@ window.onclick = function() { In our example we want to trigger a function based on the click of a button. To do this, we first need to get a reference to the button. We can use `querySelector` to get that reference. And then we can set its `onclick` value just like above. ```js -const button = docment.querySelector('.submit'); +const button = document.querySelector('.submit'); button.onclick = displayMatches(); ``` You can also combine these together like this: ```js -docment.querySelector('.submit').onclick = displayMatches(); +document.querySelector('.submit').onclick = displayMatches(); ``` Wire this up and see you function in action!