nerdexam
Microsoft

MB2-701 · Question #43

You need to verify that an XmlHttpRequest has completed in JavaScript. What should you do?

The correct answer is A. Create an event handler for the onreadystatechange event. See the full explanation below for the reasoning.

Question

You need to verify that an XmlHttpRequest has completed in JavaScript. What should you do?

Options

  • ACreate an event handler for the onreadystatechange event
  • Bexplicitytly set the Request header to a different HTIP action
  • Cexplicitly set Request header to accept JSON
  • Dcheck textStatus for a timeout

How the community answered

(39 responses)
  • A
    79% (31)
  • B
    13% (5)
  • C
    3% (1)
  • D
    5% (2)

Community Discussion

No community discussion yet for this question.

Full MB2-701 Practice