mirror of
https://github.com/microsoft/frontend-bootcamp.git
synced 2026-01-26 14:56:42 +08:00
fix(readme): Eventing -> Events, removed () from displayMatches (#98)
This commit is contained in:
committed by
Elizabeth Craig
parent
2ad3064111
commit
c0053a2e6a
@@ -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:
|
By the end of the demo we'll have covered the following:
|
||||||
|
|
||||||
- Variables
|
- Variables
|
||||||
- Eventing
|
- Events
|
||||||
- Functions
|
- Functions
|
||||||
- Conditionals
|
- Conditionals
|
||||||
- Loops
|
- Loops
|
||||||
@@ -111,7 +111,7 @@ In our example, we want to trigger a function when a button is clicked. To do th
|
|||||||
|
|
||||||
```js
|
```js
|
||||||
const button = document.querySelector('.submit');
|
const button = document.querySelector('.submit');
|
||||||
button.onclick = displayMatches();
|
button.onclick = displayMatches;
|
||||||
```
|
```
|
||||||
|
|
||||||
You can also combine the two statements together like this:
|
You can also combine the two statements together like this:
|
||||||
|
|||||||
Reference in New Issue
Block a user