why does innerhtml but not innertext? code example
Example 1: javascript the difference between innerText vs. innerHTML vs. textContent
getValue.textContent// => This element is strong and has some super fun code!
Example 2: javascript innertext vs innerhtml
innerHTML shows everything inside of the element.
innerText shows only the text inside of the element.