title: How do I POST a x-www-form-urlencoded request using Fetch AND work with the answer?
body: <p>this is my code:</p>
  <pre><code>fetch('http://localhost:3000', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded'
    },
    body: new URLSearchParams({
      'size': 'size_id',
      'style': 'style_id',
      'qty': '1'
    })
  })
    .then(res =&gt; {
      console.log(res)
    });
  </code></pre>
  <p>My problem is that I just get 'Promise pending' returned.
  Im totaly new to fetch and really new to js, so please dont blame me.</p>