26.2k views
5 votes
How does the onEvent block work?

User ClayRay
by
5.1k points

2 Answers

3 votes
Above answer is the correct choice in my opinion !! For this question hope this helps
User Bukzor
by
5.3k points
6 votes

Answer:The onEvent() block takes three parameters. The first two are the id of the element and the type of event that should be “listened” for. The third parameter is a function. If you were going to read the onEvent block like a sentence it would read “on the event that this id experiences this event, call this function”

Step-by-step explanation:

User Stephen Cochran
by
5.9k points