List the different states of XMLHttpRequest with their description.
Ask by Sumit Kesarwani
Updated 23 Sep 2020
The different states of the XMLHttpRequest object are as follows:
Uninitialized - Refers to the state when the object has not been initialized.
Open - Refers to the state when the object has been created; however, the send function has not been invoked.
Sent -Refers to the state when the send function is invoked; however, the status and headers are not available.
Receiving - Refers to the state when the process is receiving data.
Loaded - Refers to the state when the procedure is completed and the entire data is available.