The Virtual DOM Concept
The in-memory representation of the UI that frameworks like React diff against the previous version to compute minimal real DOM updates.
The virtual DOM is a concept popularized by React (though not unique to it) describing an in-memory, lightweight JavaScript representation of what the actual DOM tree should look like, which a framework diffs against the previous version to figure out the minimal set of real DOM changes needed, rather than re-rendering everything from scratch on every update. Even for developers using these frameworks daily, interviewers ask about the underlying concept to check whether the abstraction is understood, not just used.
The virtual DOM is like an architect making all their sketches and revisions on cheap scratch paper (virtual nodes) before ever touching the actual, expensive-to-modify physical building (the real DOM) — comparing the new sketch to the last one lets the crew figure out exactly which walls actually need to change, instead of demolishing and rebuilding the whole structure for every small revision.