Firstly , let us explain XMLHttpRequest open(), send(), readyState 1. open(method, url, async, user, password) : create request, initialize parameters for send() method: 'POST' , 'GET' , 'HEAD' or 'post' , 'get' , 'head', case insensitive if set meth…