Understanding innerText, innerHTML, and textContent in JavaScript
When working with the DOM (Document Object Model) in JavaScript, you often need to read or change the content of HTML elements.
But wait... there are three similar-sounding properties:
innerText
innerHTML
textContent
They may look the same, but ...
abhinayjangde.hashnode.dev2 min read