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
Without running the code, determine the order of console output for a combination of synchronous code, Promise, and setTimeout.
When should you use computed and when watch in Vue?
What is a CORS preflight request and in which cases does the browser send it? When can a request be sent without preflight?
The server returns CSV, and on the client, it is heavy to convert it to XLSX, causing the tab to hang. How to keep processing on the client without blocking the interface?
How to place a message queue utility so that it is accessible from the entire application and maintains a shared state regardless of the call location?
What is Vue nextTick and how does it differ from requestAnimationFrame?
The code review for a TypeScript function that should group file upload errors by errorCode was given; find errors and suggest fixes.
There is a reactive object with keys A and B; computed depends only on A. Will the computed be recalculated when B changes and why?
When sending a modified document, the server returns a CORS error: the current origin does not have access. What will you check and how will you solve the problem?
Without running the code, determine what will happen to the then/catch handlers of a Promise that remains in the pending state and does not call resolve or reject.
We urgently need to connect a prototype to several services with different APIs and transports (REST, WebSocket), collect and analyze metrics. What will be the plan of action?
LeetCode #424 — Given a string of uppercase English letters and a number k, find the length of the longest substring that can be made of the same characters with at most k replacements.
Was there a code review process at your previous job?