In this example, clicking the Toggle class / data button will toggle a 'modded' class on our div element, and switch the data-config attribute between two values. Open the developer console to examine changes between states. You should see an array containing two MutationRecord objects.