3 out of 5 correct
You have a solid understanding of core front-end concepts, but there are areas for improvement. Focus on React hooks and advanced TypeScript types. To level up, read the React docs on Hooks (https://react.dev/reference/react).
Which of the following *is NOT* a built-in React hook?
Remember that React only exposes hooks that start with "use" and are part of the public API. **useFetch** is not one of them – it might appear in tutorials but it is not provided by React itself. Familiarise yourself with the full list of built-in hooks at https://react.dev/reference/react.
Select **all** features that TypeScript adds on top of JavaScript.
Static typing and generics were both recognised, but interfaces were missed. Interfaces are a core TypeScript feature that enable expressive contracts between components. Have a look at the official guide: https://www.typescriptlang.org/docs/handbook/2/objects.html#interfaces.
What is **event delegation** in the browser and why is it useful?
Event delegation leverages the fact that events bubble up the DOM. Instead of attaching a separate listener to every child, we attach one to a common ancestor and determine the target inside the handler.
Good concise explanation – mentioning event bubbling and the benefit of fewer listeners shows understanding. You can reinforce this by experimenting with **stopPropagation** scenarios and reading MDN: https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Building_blocks/Events#event_delegation.
Implement a `debounce` utility in JavaScript.
Nicely done. The solution correctly clears and resets the timeout, ensuring the wrapped function executes after the specified delay. As a next step, try implementing a _throttle_ utility and compare when each pattern is most appropriate.
Which CSS layout method provides a two-dimensional grid system of rows and columns?
Grid Layout is the two-dimensional layout system that allows you to work with rows and columns simultaneously, whereas Flexbox is one-dimensional. The Complete Guide to CSS Grid by CSS-Tricks (https://css-tricks.com/snippets/css/complete-guide-grid/) is an excellent resource.