Frontend
Have you ever worked with ready-made component libraries?
Refactor the given React code to improve its structure and readability. The code includes a product list with search functionality, a cart count, and a sum of prices. Implement the fetchProducts function to simulate fetching products with a delay and possible error. Use React hooks such as useState, useEffect, and useCallback appropriately. Ensure the UI updates correctly when adding products to the cart and clearing the cart.
What utility types in TypeScript do you know, for example Pick, Partial, Omit?
```typescript var a = { firstName: 'Bill', lastName: 'Ivanov', sayName: function() { console.log(this.firstName); }, sayLastName: () => { console.log(this.lastName); } }; a.sayName(); // var b = a.sayName; b(); // a.sayName.bind({ firstName: 'Boris' })(); // a.sayName(); // a.sayLastName(); // a.sayName.bind({ firstName: 'Boris' }).bind({ firstName: 'Tom' })(); // a.sayLastName.bind({ lastName: 'Petrov' })(); // ``` The containing arrow function captures the global value of 'this'.
There is a search filter with debounce: the first request goes for one word, then the second — for a new word, but the first response arrives last and overwrites the UI. How to deal with this in Angular?
Why use a state manager in React if there is Context?
Have you had experience working with Storybook?
Why did you decide to look for a new job and leave your last company?
When is it better to use Flexbox and when CSS Grid?
What is a design system from a development perspective, not just layouts in Figma?
How is CSS selector specificity calculated: what is stronger — inline styles, !important, ID, classes, or tags?
What does the CSS property will-change do?
What is type narrowing?
What does the Mobile First approach mean in layout design?
What is Shadow DOM and why is it needed?
What do you know about monorepos and how do tools like Nx and Turborepo differ?
Why use cookies, localStorage, sessionStorage, and IndexedDB, and what are the differences between them?
What Core Web Vitals and other web performance metrics do you know?
What do you usually add and describe in Storybook?
How often do you go through interviews?