At first glance, both properties look like they do the same thing. While innerHTML provides a simple and convenient way to create HTML templates as strings and inject them into the DOM [Document Object Model], textContent only lets you create plain t...
jossy.hashnode.dev1 min read
No responses yet.