window.ENTITIES={'/api/snippets/javascript/js%20instanceof%20element':[{"result":true,"message":null,"batch":{"type":"javascript","name":"js instanceof element","items":[{"id":"1yPN5j","type":"javascript","name":"js instanceof element","content":"// create element\nconst element = document.createElement('div');\n\n\n// check if the element is instance of Element, Node, etc.\n\nconsole.log(element instanceof HTMLElement);\t// true\nconsole.log(element instanceof Element);\t\t// true\nconsole.log(element instanceof Node);\t\t\t// true\nconsole.log(element instanceof EventTarget);\t// true\n\nconsole.log(element instanceof Text);\t\t\t// false\nconsole.log(element instanceof Comment);\t\t// false","source":"https://dirask.com/posts/HTML-Element-Node-etc-inheritance-p5WNW1","author":{"id":"z0mP3o","name":"Kadeem-Craig","avatar":"1629059646222__z0mP3o__w40px_h40px.jpg","points":516,"role":"BASIC"},"creationTime":1634312714000,"updateTime":null,"removalTime":null}]}}]};