text: function makeRequest(method, url) {
      return new Promise(function (resolve, reject) {
          let xhr = new XMLHttpRequest();
          xhr.open(method, url);
          xhr.onload = function () {
              if (this.status >= 200 && this.status < 300) {
                  resolve(xhr.response);
              } else {
                  reject({
                      status: this.status,
                      statusText: xhr.statusText
                  });
              }
          };
          xhr.onerror = function () {
              reject({
                  status: this.status,
                  statusText: xhr.statusText
              });
          };
          xhr.send();
      });
  }
  async function getResume(url) {
      // await code here
      let result = await makeRequest("GET", url);
      // code below here will only execute when await makeRequest() finished loading
      return result;
  }
  
  export default getResume;