title: How to fix [object Object] Javascript error?
body: <p>I would like to display a request from my JSON placeholder. I'm unsure where to start or even what is the right question to ask to resolve my error.</p>
  
  <p>I understand why the error occurs as shown here (<a href="https://stackoverflow.com/questions/4750225/what-does-object-object-mean">what does [object Object] mean?</a>) I don't understand how to fix the problem. I know I would need to use console.log() but unsure how to return the specific values to a variable then display it on the screen.</p>
  
  <p>HTML</p>
  
  <pre><code>&lt;button type="button" class="btn btn-dark"&gt;Click here to execute your first Ajax get request&lt;/button&gt;
  </code></pre>
  
  <p>Javascript</p>
  
  <pre><code>$(document).ready(function(){
    $("button").click(function(){
      $.get("https://jsonplaceholder.typicode.com/todos/1", function(title, completed){
        alert("Title: " + title + "\nCompleted: " + completed);
      });
    });
  });
  </code></pre>
  
  <p>Expected result</p>
  
  <pre><code>  "Title": "delectus aut autem",
    "completed": success
  </code></pre>