Skip to content

Commit

Permalink
Rephrase to avoid obscure term (use active voice) (mdn#13451)
Browse files Browse the repository at this point in the history
* changed typo

* Update files/en-us/learn/javascript/first_steps/a_first_splash/index.md

Co-authored-by: Jean-Yves Perrier <[email protected]>

Co-authored-by: Jean-Yves Perrier <[email protected]>
  • Loading branch information
Abhiram-Gullapalli and teoli2003 authored Mar 3, 2022
1 parent 296a4cc commit f7710a7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ This is a lot of code — phew! Let's go through each section and explain what i
### Events
At this point we have a nicely implemented `checkGuess()` function, but it won't do anything because we haven't called it yet. Ideally we want to call it when the "Submit guess" button is pressed, and to do this we need to use an **event**. Events are things that happen in the browser — a button being clicked, a page loading, a video playing, etc. — in response to which we can run blocks of code. The constructs that listen out for the event happening are called **event listeners**, and the blocks of code that run in response to the event firing are called **event handlers**.
At this point, we have a nicely implemented `checkGuess()` function, but it won't do anything because we haven't called it yet. Ideally, we want to call it when the "Submit guess" button is pressed, and to do this we need to use an **event**. Events are things that happen in the browser — a button being clicked, a page loading, a video playing, etc. — in response to which we can run blocks of code. **Event listeners** observe specific events and call **event handlers**, which are blocks of code that run in response to an event firing.
Add the following line below your `checkGuess()` function:
Expand Down

0 comments on commit f7710a7

Please sign in to comment.