How can we get the state of the requested process?
XMLHttpRequest get the current state of the request operation by using the readyState property. This property checks the condition of the object to verify if any action should be taken. The readyState property uses numeric values to show the state.