Does DOM API provide HTMLTitle Object that implements Node interface?
document.title returns only string part of the title.
typeof(document.title)
"string"
While other properties like document.head is HTMLHeadElement object and document.doctype is DocumentType Object and both implements Node interface.
document.titlerepresents the current document’s title string. The interface of the element can be accessed through:typeofis not the correct way to get the internal class name. UseObject.prototype.toStringinstead: