title: Ajax request in es6 vanilla javascript
body: <p>I am able to make an ajax request using jquery and es5 but I want to transition me code so that its vanilla and uses es6. How would this request change. (Note: I am querying Wikipedia's api).</p>
  
  <pre><code>      var link = "https://en.wikipedia.org/w/api.php?action=query&amp;prop=info&amp;pageids="+ page +"&amp;format=json&amp;callback=?";
  
      $.ajax({
        type: "GET",
        url: link,
        contentType: "application/json; charset=utf-8",
        async: false,
        dataType: "json",
        success:function(re){
      },
        error:function(u){
          console.log("u")
          alert("sorry, there are no results for your search")
      }
  </code></pre>