```javascript const obj = { name: 'Alex', say() { console.info(this.name); } }; const fn = obj.say; fn(); obj.say(); ```
Frontend
Tell me more about the rendering stages: layout (reflow) and paint (repaint)
// How can this asynchronous code in a loop be optimized so that promises execute asynchronously? async function processItems() { const items = [1, 2, 3]; for (const item of items) { await new Promise((resolve) => setTimeout(resolve, 100)); console.log(item); } } processItems();
How does the refresh token mechanism work?
Tell me about SSE (Server-Sent Events) and compare it with WebSocket and polling.
What is the difference between HTTP and HTTPS?
Tell me about development methodologies: Scrum, Waterfall, Kanban
What is the never type in TypeScript and how does it differ from other types?
Which HTML tag helps load different images for various screen resolutions?
Abstract task: a feature was rolled out, and a week later users complain that the page freezes. How would you go about finding the problem?
What architecture to choose for writing a UI library?
What types of testing do you know besides unit tests?
Tell me about the Dependency Inversion principle (DIP) from SOLID with an example.
Tell me about the critical rendering path of a page in a browser.
```javascript const obj = { name: 'Alex', say() { console.info(this.name); } }; const obj2 = { name: 'Ivan' } const fn = obj.say.bind(obj).bind(obj2); fn(); obj.say(); ```