1. Compare created and mounted hooks. When would you pick one over the other?
created runs before the component is mounted; no DOM access yet—good for initializing state or starting async data fetches. mounted runs after the component is inserted into the DOM—use it for measuring elements, integrating third-party widgets, or DOM event listeners tied to the component’s root.