JavaScript Refresher and Detailed Study - Part 13
Last updated on 24 Nov 2026 Post series: Part 1 , Prev Part (12) , Post Series TOC Contents Gemini chat and dates superposition informal term for combined sum of all properties and methods an object inherits from its entire prototype chain To get node type, nodeType may be simpler than instanceof Writing to outerHTML is an anti-pattern in modern JavaScript Count descendants: querySelectorAll flattened approach is preferred over recursive traversal For std HTML attr, DOM object properties are used instead of getAttribute() ... (with exceptions); For custom attr, data-* is used ( <div data-custom-id="123"> ... div.dataset.customId ) DOM properties often provide processed/computed value while attributes show HTML source code values; E.g. href property is always full URL whereas href attribute gives href as in HTML id-named 'global' variables are convenient for DevTools console debugging and exploration but s...