DOM manipulation, event handling, state management, and animations are easily mixed in the same file. State is easily scattered across JavaScript variables, CSS classes, and DOM display states. It is ...