What’s the difference between using .textContent vs .innerText vs .innerHTML?
All three of these properties are used to manipulate or get the text content of an element in HTML, but there are some important differences between them. Example: <div id=”example”> This is some <b>bold text</b>. </div> Using textContent on the div element will return “This is some bold text.”. Example: <div id=”example”> This is some … Read more