Why was the FSD architecture used instead of some other?
Frontend
Can you give an example of a closure from practice, for example from React?
What can be done so that the second console.log outputs 'Alice' instead of undefined? Complete the code using bind.
What will happen to the button label if setCount is called several times in a row in one handler? How many times will the component re-render?
Is useEffect synchronous or asynchronous?
Can Promise be infinite? How to do it?
Tell me about useState in React: what is it, how does it work, is it a synchronous or asynchronous hook?
Tell me about promises in JavaScript: what they are, what they are used for, and their methods.
What is the Context API in React and what problem does it solve?
How to protect against an infinite Promise when requesting access to the camera and microphone? Suggest options using static Promise methods.
Tell me about useEffect and useLayoutEffect: what is the difference, and when to use what?
Briefly tell about yourself and what you did at your last job.
Where in practice can an infinite Promise be encountered? (hint: related to web conferences, access requests to camera and microphone via navigator.mediaDevices.getUserMedia)
What do you know about React 19? What changes were made compared to React 18?
What ways of binding context do you know?
What do you know about the context in JavaScript?.
What happens to 'this' in strict mode and non-strict mode if you try to access a context that does not exist?
Tell me about the advantages and challenges of micro frontends.
By default, JSON from the backend has the type 'any'. How can you protect against this and why is it important?
What will console.log output? (a chain with resolve, then, throw new Error, catch, then promise)