Difference between innerHTML, innerText, textContent
In Javascript, there are three properties that can be used to set or return an HTML element's content in the DOM: innerHTML, innerText, and textContent.
Sometimes it becomes very confusing which one to use, so in this post I break down the subtle dif...
sudipta26.hashnode.dev2 min read