title: JavaScript GET request
body: <p>I'm new to JS, I don't have a lot of experience, I would like to ask for help, I want to do a post to the address, and bring out a photo that I will get in reply in base64.
  I tried that way, but it did not work
  <div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>const Http = new XMLHttpRequest();
  const url='https://jsonplaceholder.typicode.com/posts';
  Http.open("GET", url);
  Http.send();
  
  Http.onreadystatechange = (e) =&gt; {
    console.log(Http.responseText)
  }</code></pre>
  </div>
  </div>
  
  My answer
  <div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>{
  "snaphot" : string base64
  }</code></pre>
  </div>
  </div>
  </p>