READ Free Dumps For Microsoft- 70-480
Question ID 14916 | You are developing an application by using JavaScript. |
Option A |
* What is the difference between call and apply? apply lets you invoke the function with arguments as an array; call requires the parameters be listed explicitly. Pseudo syntax: theFunction.apply(valueForThis, arrayOfArgs) theFunction.call(valueForThis, arg1, arg2, ...) |
Correct Answer | A |
Question ID 14917 | A company has an XML file named products.xml on a web server. The file contains a list of
|
Option A |
When readyState is 4 and status is 200, the response is ready: Example xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4 && xmlhttp.status==200) { document.getElementById("myDiv").innerHTML=xmlhttp.responseText; } } Note: * readyState == 4 Holds the status of the XMLHttpRequest. Changes from 0 to 4: 0: request not initialized 1: server connection established 2: request received 3: processing request 4: request finished and response is ready * status==200 200: "OK" 404: Page not found |
Correct Answer | A |