XHR or XML HTTP request is an object utilising the AJAX technique to communicate with the server. However, XHR is not used in the industry nowadays because it uses callbacks. Can you guess what problems the developer might run into while using XHR?
Although Fetch primarily uses promises, it can also use async-await. In the project, the SME will use Fetch in conjunction with async-await.
We can understand the main features of Fetch from the following image: