How to Track Changes in the DOM Using MutationObserver

What Is MutationObserver?
MutationObserver is a Web API provided by modern browsers for detecting changes in the DOM. With this API one can listen to newly added or removed nodes, attribute changes, or make changes in the text content of text nodes.
Why would you want to do that?