title: Clarification on a console.log of a Javascript object
body: <p>This seems to be basic but I am missing something. I am using the node.js formidable module and am console logging the error as in:</p>
  
  <pre><code>uploadProc.on('error', function(err) {
     console.log("Form upload error...");
     console.log(typeof err);
     console.log(err);
     console.log(err[0]);
     console.log(err['Error']);
     console.log(JSON.stringify(err);
  });
  </code></pre>
  
  <p>The output is:</p>
  
  <pre><code>object
  [Error: Request aborted]
  undefined
  undefined
  {}
  </code></pre>
  
  <p>As I see, it is neither an array nor a regular object with the property Error. If I want to stringify it, whatever type it is, how do I do that?  May be it is string to begin with. But if that was the case, typeof would have returned "string." I check this at <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/typeof" rel="nofollow">Mozilla</a>. Seems to fall in the "any other object" category. Can someone explain what type of an object that is console logged as [Error: Request aborted] is?</p>