asked 63.9k views
5 votes
What does the following line of code do?

onclick="quiz()"

A.
It executes a function called quiz when the user clicks.

B.
It executes a function called onclick when the user takes a quiz.

C.
It creates a variable called onclick.

D.
It creates a variable called quiz.

asked
User Vivin
by
8.0k points

2 Answers

4 votes

Answer:

A.

Step-by-step explanation:

answered
User Marilin
by
8.3k points
6 votes

Answer: A

Step-by-step explanation:

The line of code onclick="quiz()" assigns an event handler to the onclick event of an HTML element. When the user clicks on that element, the quiz() function will be executed.

answered
User Dmo
by
7.3k points