title: How does Chrome infer the type/name of an object?
body: <p>I have a React element in a variable. Chrome dev tools correctly identifies it as <code>element: input</code> but how does it get the string/value <code>input</code>?</p>
  
  <pre><code>element.toString() == "[object HTMLInputElement]"
  element.constructor.name == "HTMLInputElement"
  </code></pre>