What will console.log output? (a chain with resolve, then, throw new Error, catch, then promise)
Frontend
6436
681
Middle
131
Where do closures most often occur? The simplest example.
Middle
128
Have you worked with the infer type in TypeScript? What do you know about it?
Middle
127
What is the difference between interface and type in TypeScript? When should you use each?
Middle
126
Please tell about closure in JavaScript.
Middle
126
What will console.log output? (context task: user object with greet method, calling the method directly and through a variable)
Middle
123
Why does the counter retain its value between calls, and at the same time, the variable count is not directly accessible from outside?
Middle
123
What is the main problem with the Context API? Why do they switch to state managers? Is it possible to avoid unnecessary re-renders in the Context API?
Middle
108