Interview answers verified by specialists.
Find interview questions and answers on this website:
readyState allows determining the request status. If the value is 4, it means that the request has been completed and response is then sent to the browser. By determining the readyState property value of XMLHttpReqyest, One can know if the request is completed. If the readyState value = 4, the request has been completed and the data is available.