Multiple choice technology web 2.0

How many times is the onreadystatechange event triggered for a full cycle?

  1. 1

  2. 2

  3. 3

  4. 4

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

The onreadystatechange event handler is triggered every time the readyState property of an XMLHttpRequest changes. In a complete cycle, the state transitions through four distinct values (1, 2, 3, and 4), triggering the event handler four separate times. Distractors specifying fewer triggers are incorrect.