jQuery (circa 2006–2015 golden era) standardized painful cross-browser DOM code. Version 3.x is leaner and drops old IE hacks, but the mental model persists in millions of pages.
Core pieces
- $ / jQuery — factory function returning collections
- Chaining — most methods return the same collection
- Plugins — extend
$.fnfor reusable widgets - Ajax helpers — shorthand around
XMLHttpRequest
Not a SPA framework
Unlike Vue or React, jQuery does not own component state or a virtual DOM—you orchestrate updates imperatively.
Interview
- Q: Library or framework?
A: A focused DOM/Ajax library; apps layer their own architecture on top. - Q: Still relevant?
A: For maintenance and gradual migration—not for greenfield architecture decisions.
Interview prep
- What is jQuery in one sentence?
A DOM and Ajax helper library centered on chainable collections—not a component framework like Vue or React.