Sobes.tech

When is the cleanup function in `useEffect` executed and what does it do in this case?

Middle
RedLab
0

What is the difference between the DOMContentLoaded and load events? When should each be used?

Middle+
Ozon Tech
0

What is CORS and what is it used for? How to allow requests from all sources?

Middle+
Ozon Tech
0

What are the next stages of the selection process after this interview?

Middle
RedLab
0

What is the most resource-intensive part of rendering a page?

Middle+
Ozon Tech
0

Will the object returned by the hook (`data`, `loading`, `error`) have the same reference between renders if the values haven't changed? Why? How to keep a stable reference to the object?

Middle
RedLab
0

Implement a wrapper around fetch with retries: it takes the number of retries and fetch arguments, returns the same result as fetch, and after exhausting attempts, throws the last error.

Middle+
Ozon Tech
0

How does HTTP differ from HTTPS?

Middle+
Ozon Tech
0

Implement a storage class following the Observer pattern: the class stores data, allows subscribing and unsubscribing callback functions, and notifies all current subscribers of data changes, passing them the new data.

Middle+
Ozon Tech
0

Connect the fixed hook in the second component and display a random number and the current scroll position.

Middle
RedLab
0

What error can occur when counting comments using Map if there is no record for postId yet, and how to fix it?

Middle+
Ozon Tech
0

How to correctly remove the `scroll` event handler if `addEventListener` and `removeEventListener` must receive the same function reference?

Middle
RedLab
0

Tell about the structure of an HTTP request: what parts does it consist of?

Middle+
Ozon Tech
0

What happens if the URL changes rapidly several times in a row?

Middle
RedLab
0

What does this hook return on the first render? What will be the values of `data`, `loading`, and `error`?

Middle
RedLab
0

Is `useCallback` needed here? What is it used for and in what cases is it useful?

Middle
RedLab
0

Name an example of an HTTP header in a request and explain its purpose.

Middle+
Ozon Tech
0

How to improve the retry wrapper around fetch to retry the request also when response.ok === false?

Middle+
Ozon Tech
0

What does the underscore in a class property name, such as _data, mean, and does it make the property private?

Middle+
Ozon Tech
0

What does the `getUser` function do inside the hook?

Middle
RedLab
0
/286