In DOM & Events, what is the primary real-world frontend engineering purpose of 'Document Object Model (DOM) Tree Architecture'?
-
A. Keeping a clean single source of truth
let tasks = []in JS and rendering DOM deterministically from state. - B. Disabling browser keyboard navigation, focus outlines, and TypeScript type checking.
-
C. Hardcoding private backend database credentials inside public
VITE_*client bundles. -
D. Replacing semantic HTML landmarks with unlabelled clickable
<div>elements everywhere.
✓ Reveal Answer & Explanation
Correct Answer: Option A
'Document Object Model (DOM) Tree Architecture' is applied in production DOM & Events specifically for: Keeping a clean single source of truth let tasks = [] in JS and rendering DOM deterministically from state.