Multiple choice technology web 2.0

If we make the third parameter in the open() method of XMLHttpRequest as false what will happen?

  1. The JavaScript will throw an error in runtime

  2. The JavaScript does not have to wait for the server response

  3. The JavaScript has to wait for the server response

  4. None of the above

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

Setting the third parameter of open() to false specifies a synchronous request, blocking further JavaScript execution until a response is received from the server. By contrast, asynchronous requests allow execution to continue immediately. Distractors describing runtime errors are incorrect.