Without running the code, determine the output to the console for a loop with var and asynchronous callbacks via setTimeout; how will the result change when replacing var with let and what will happen with const?
Frontend
Determine the output and explain the behavior of the Promise chain with then, catch, finally, throw, and return new Error.
Tell us about your impressions of completing the test task: what difficulties did you face, what did you like and dislike?
How to migrate a table with millions of rows: add a new column with a default value and remove the old one, without causing production hang during deployment?
What are the advantages of RTK Query?
List the main React hooks.
What state management did you use in your Next.js project?
What are the alternatives to WebSocket?
Besides useMemo, how else can you reduce unnecessary re-renders of React components?
What design patterns did you use in your work?
What is the time complexity of bubble sort?
Tell me more about useMemo and useCallback: what is the difference between them and when to use each?
How to fix the logic of inserting ads after every 10 posts if the array index starts from zero?
Conduct a code review of a component with a post list, pagination, data loading, useLayoutEffect, Redux, and inserting an offer after every 10 posts: identify possible errors and suggest improvements.
Reduce the grid to 9 squares of size 3×3. After selecting a square, disable all others except the squares above, below, left, and right of the selected one. Available neighboring squares should remain red, and can be switched. Consider grid boundaries.
Tell us about your experience working with charts: what did you do and what problems did you face?
In what case can a synchronous try/catch around an asynchronous call still work? What happens to an unhandled rejected Promise?
What experience do you have with Redux Toolkit and RTK Query? What advantages do you highlight?
Tell us about your last project: what was it, what were its goals, and what was your role?
What does the reduce method do?