Sobes.tech

What is code splitting and how does it work?

Middle
118

Implement a custom React hook useSubState that takes the full state, a setState function, and a key name (object field), and returns a tuple of this field's value and a function to change it — similar to useState, but for a specific field of a large state object.

118

Знаешь ли ты какие-нибудь подводные камни, связанные с куками? Например, опасные моменты с точки зрения безопасности.

118

Solve the TypeScript problem: there is a Response type with mutually exclusive fields payload and error, and their types may differ. You need to type the functions payloadFrom(response), which returns payload or undefined, and errorFrom(response), which returns error or undefined, so that the return types are automatically inferred from the input Response.

Middle+
118

Why use track in new Angular template cycles and which field is better for tracking elements? What happens when tracking by object?

118

Why do checkboxes not appear when the page loads?

118

Why did you choose web development and Angular specifically, rather than, for example, mobile development?

118

Tell me about the Event Loop: what does it consist of and how does it work?

Middle
118

Implement an asyncAuth function with a callback interface that returns a Promise. Then implement a tryAuth(n) function that uses asyncAuth and makes n additional attempts in case of failure. If all attempts fail, it returns the last error.

118

Your resume mentions Java and PostgreSQL — can you tell us about this experience?

118

Why didn't you write more detailed comments in pull requests? Do you usually write like that in requests to your colleagues?

118

Explain the behavior of the following JavaScript Promise code and what will be logged to the console: ```javascript let promise = new Promise((resolve, reject) => { resolve("ok"); }) promise .then(result => `${result} one`) .then(result => `${result} two`) .then(result => {return new Error('error')}) .finally((result) => console.log('finally', result)) .catch(err => console.error(err.message)) ```

118

Have you been looking for a job all these two months?

118
/315