Manipulating the DOM in JavaScript with innerText and innerHTML

1 · · Dec. 14, 2019, midnight
Summary
Front-end frameworks are all the rage these days. Working with a virtual DOM, while much more efficient, can be a ton of overhead when all you need to do is tweak a few elements on an existing static page. Fortunately, JavaScript comes with some methods that make it super easy to edit an element’s text as well as the HTML inside of an element. Take that React, Angular, Vue, and whatever hot new framework I failed to mention! Getting started To follow along at home, all you need is a web browser ...