Sobes.tech

Tell about the Promise methods: Promise.all, Promise.allSettled, Promise.race, Promise.any — how do they differ from each other?

Middle+
231

Tell me, what is context in JavaScript, what is lexical environment, and how do closures work?

Middle+
187

// 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, }]"}]}

Middle
187

[name] asked: what is the difference between type and interface in TypeScript?

Middle
182

[name] asked: how much did TypeScript feature in your actual work experience?

Middle
176

What is requestAnimationFrame and how is it related to the Event Loop?

Middle+
173

[name] asked: what is a type guard in TypeScript? How to write a type guard function?

Middle
170

[name] asked: how to copy an object so that changing the copy does not affect the original? What object copying methods exist?

Middle
170

[Name] asked: how many people were in the team where you worked? What was the team composition?

Middle
166

What happens to the context when using closures? What will be the context of functions created in a loop with var?

Middle+
166

[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?

Middle
165

[name] asked: what is the never type in TypeScript? When is it used?

Middle
162

[name] asked: how can methods be called on primitives (for example, on a string)?

Middle
161

[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.

Middle
158

[name] asked: what is the difference between the methods bind, call, and apply?

Middle
153

[Name] asked: what are primitive types in JavaScript?

Middle
149

[name] asked: what is a literal type in TypeScript?

Middle
145

Tell us about asynchronous JavaScript: microtask and macrotask queues, how does the Event Loop work?

Middle+
137

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.

Middle+
136

[name] told: what led you to us, what bored you at your current job, what do you want?

Middle
135
/2