What is the difference between innerHTML, innerText and childNodes[].value in JavaScript?
innerHTML
innerText
childNodes[].value
InnerText will only return the text value of the page with each element on a newline in plain text, while innerHTML will return the HTML content of everything inside the body tag, and childNodes will return a list of nodes, as the name suggests.
InnerText
body
childNodes