title: Return Body Text from Fetch API
body: <p>I would like to return the response body text returned by the POST that I send by fetch. </p>
  
  <pre><code>var r = '';
  var res = fetch(this.commentsUrl, {
    method: 'post',
    body: JSON.stringify(comment),
    headers: {
      'Content-Type': 'application/json'
    }
  }).then(function (response) {
    return response.text().then(function (text) {
      r = text;
    })
  });
  </code></pre>
  
  <p>Neither r or res is returning the body text. They are both returning Promise. How do I only return the body text?</p>