TextNode or textContent?
It ‘s not really matter of advantage but of proper usage depending on the need. The fundamental difference is that: createTextNode() is a method and works just as its name says: it creates an element… then you must do something with it (like in your example, where you append it as a child); so it … Read more