title: Why can I not manipulate data from this ajax call?
body: <p>I am sending an ajax call to my json server on localhost:3000 and trying to get an object back to manipulate and display on a webpage. No matter what I do, I cannot seem to console log (data) in order to work with the object.</p>
  
  <p>Here is my HTML:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html lang="en"&gt;
  &lt;head&gt;
      &lt;meta charset="UTF-8"&gt;
      &lt;title&gt;Title&lt;/title&gt;
      &lt;link rel="stylesheet" type="text/css" href="main.css"&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;div id="parent"&gt;
      &lt;input id="title" placeholder="Blog Title"&gt;
      &lt;br&gt;
      &lt;input id="body" placeholder="Post Body"&gt;
      &lt;br&gt;
      &lt;button onclick="request()"&gt;Submit&lt;/button&gt;
  &lt;/div&gt;
  &lt;div id="comments"&gt;&lt;/div&gt;
  &lt;div id="posts"&gt;&lt;/div&gt;
  &lt;script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;script src="main.js"&gt;&lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>As well as my Javascript:</p>
  
  <pre><code>"use strict";
  
  function request() {
      debugger;
      $.ajax({
          dataType: 'json',
          url: "http://localhost:3000",
          success: function(data) {
              console.log(data);
          }
      });
  }
  </code></pre>
  
  <p>Any help is appreciated. I'm sure what I'm doing wrong here is something simple. I've referred to many web pages for more information such as <a href="https://api.jquery.com/jQuery.ajax/#options" rel="nofollow noreferrer">https://api.jquery.com/jQuery.ajax/#options</a>, <a href="https://github.com/typicode/json-server" rel="nofollow noreferrer">https://github.com/typicode/json-server</a>, as well as other stack overflow questions.</p>