what is the difference between innertext and innerhtml and when should you use it code example
Example 1: javascript the difference between innerText vs. innerHTML vs. textContent
getValue.innerHTML// => This element is <strong>strong</strong> and has some super fun <code>code</code>!
Example 2: javascript innertext vs innerhtml
innerHTML shows everything inside of the element.
innerText shows only the text inside of the element.