Using textContent vs innerHTML
While working through challenge two of Facebook's and Andela's DevC qualification test, I noticed the test cases weren't accepting innerHTML over textContent, so I read up a bit. Here's why: Although both can be used to read and write text inside an ...
Aug 10, 20191 min read33