Browser and Web APIs

Exercise: Fetch API

  1. In the request function of the JavaScripts, replace the use of the XmlHttpRequest object with corresponding calls of the fetch function.
  2. Pay special attention to appropriate error handling.