title: Fetching an object to HTML page
body: <pre><code>fetch("https://jsonplaceholder.typicode.com/todos/1")
      .then(res =&gt; {res.json()})
      .then((body) =&gt; {
          console.log(body.title);
      })
  </code></pre>
  
  <p>I'm trying to fetch an object of title in this JSON but I don't understand why I always get this error, is it because I'm not running a server?</p>
  
  <blockquote>
    <p>index.html:8 Uncaught (in promise) TypeError: Cannot read property 'title' of undefined
        at index.html:8</p>
  </blockquote>