What is code splitting and how does it work?
Frontend
Tell me about jest.mock(), jest.fn(), and jest.spyOn() — in which scenarios should they be used?
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.
Знаешь ли ты какие-нибудь подводные камни, связанные с куками? Например, опасные моменты с точки зрения безопасности.
What are lazy routes in Angular?
Why are you considering this format of cooperation now?
Tell us about your current project and the reasons for seeking a new job
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.
Why use track in new Angular template cycles and which field is better for tracking elements? What happens when tracking by object?
What ways of binding context do you know?
Have you worked with databases? If yes, which ones? What exactly did you do with them?
Why do checkboxes not appear when the page loads?
Why did you choose web development and Angular specifically, rather than, for example, mobile development?
How to handle the rejected state of a promise using .then() and .catch()? How to understand in which .then() the error occurred and handle it separately?
Tell me about the Event Loop: what does it consist of and how does it work?
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.
Your resume mentions Java and PostgreSQL — can you tell us about this experience?
Why didn't you write more detailed comments in pull requests? Do you usually write like that in requests to your colleagues?
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)) ```
Have you been looking for a job all these two months?