Tell about the Promise methods: Promise.all, Promise.allSettled, Promise.race, Promise.any — how do they differ from each other?
Frontend
Tell me, what is context in JavaScript, what is lexical environment, and how do closures work?
// Example of received data: // Comments [{ "postId": 1, "id": 1, "name": "id labore ex et quam laborum", "email": "[email]", "body": "laudantium enim quasi est quidem magnam voluptate ipsam eos\ntempora quo necessitatibus\ndolor quam autem quasi\nreiciendis et nam sapiente accusantium" }] // Example of received data: // Users [{ "id": 1, "name": "Leanne Graham", "username": "Bret", "email": "[email]", "phone": "[phone]" }] // Output data format (posts): [{ "id": 1, // post id "title": "sunt aut facere repellat provident occaecati excepturi optio reprehenderit", // post title "userName": "Leanne Graham", "commentsCount": 10, }]"}]}
[name] asked: what is the difference between type and interface in TypeScript?
[name] asked: how much did TypeScript feature in your actual work experience?
What is requestAnimationFrame and how is it related to the Event Loop?
[name] asked: what is a type guard in TypeScript? How to write a type guard function?
[name] asked: how to copy an object so that changing the copy does not affect the original? What object copying methods exist?
[Name] asked: how many people were in the team where you worked? What was the team composition?
What happens to the context when using closures? What will be the context of functions created in a loop with var?
[name] asked: context task: what will the console output on lines 12, 13, 14? How to make sure that line 14 has the correct context without changing line 14 itself?
[name] asked: what is the never type in TypeScript? When is it used?
[name] asked: how can methods be called on primitives (for example, on a string)?
[name] asked: task: there is an input on the page. Write code that will save the entered value in localStorage so that after reloading the page, the value is restored.
[name] asked: what is the difference between the methods bind, call, and apply?
[Name] asked: what are primitive types in JavaScript?
[name] asked: what is a literal type in TypeScript?
Tell us about asynchronous JavaScript: microtask and macrotask queues, how does the Event Loop work?
Practical task: implement a function that takes an array of URLs and a limit of concurrent requests, and performs fetch requests with a limit on parallel execution (no more than limit requests at the same time), returning results in the original order.
[name] told: what led you to us, what bored you at your current job, what do you want?