On the page resize event, we want to send analytics. If we just attach a handler to resize, it will be called hundreds of times per second. How can this be avoided?
Frontend
Can you tell me about the differences between HTTP versions 1, 2, and 3?
Can we retrieve data using a DELETE request or send data using a GET request?
There is another rendering stage in the overall process — can you recall which one? Why is layer separation (composition) needed?
During HTML parsing, if scripts are placed at the top of the page, do they block the further loading of the page or not?
It turns out that the work with these effects was allocated to a separate library?
Does it make sense to use useMemo or useCallback for a function that returns JSX?
Will the page be interactive during this infinite recursion?
Live coding: you have an example code using Event Loop (synchronous functions, async/await, Promise, setTimeout). You need to arrange the order of console.log execution — what will run first, second, third, etc.
[name] asked: How ready are you to do page layout and UI element creation about 75% of your working time?
The useEffect has a cleanup function and a dependency array with parameters a, b, c. When will the cleanup function execute?
Have there been issues with different libraries around React in different companies' projects?
If styles are linked via a separate link instead of scripts, do they block rendering?
Is the OPTIONS request sent in every cross-domain request or only when necessary? What is the difference between simple and complex requests in this context?
[name] asked: Was design review included in the release process? How did it go?
Tell me what static methods exist for working with promises. Explain what Promise.any and Promise.all do.
[name] asked: Can you tell me about the stack you worked on? Specifically, tell me more about Next.js.
Live coding: implement a function $ (similar to jQuery), which takes a valid CSS selector and finds nodes accordingly. The function should return an object with methods addClass, toggleClass, removeClass, css (apply styles), html (insert HTML/CSS inside the element) — with chaining capability. The provided test code with chaining should not be changed and must work after implementing the function.
What sources of microtasks and macrotasks do you know?
How does debounce differ from throttle?