Sobes.tech

Is it possible to count how many event handlers are registered and how many have been removed? How to check this?

Middle
236

There are two arrays: A1 and A2, where A2 = A1 (reference type). What needs to be done only with A2 to clear both arrays?

Middle
180

A comparison chain task: what will the code with a condition like `1 < 9 < a` output? What value should be set for variable `a` to make the branch with output 2 true?

Middle
174

What happens after calling `setLoading(true)` and how will the component behave during this?

Middle
170

What are ref and reactive in Vue 3? What is the difference and how is the value accessed?

Middle
163

A string concatenation task in JavaScript: what will be displayed on the screen and why? (example with + operator and strings/numbers)

Middle
162

Tell us about yourself, your experience, the most challenging and interesting tasks, technologies you have worked with.

Middle
161

Event Loop task: determine the order of console output when setTimeout, Promise, and synchronous code are present. What will be output last and why?

Middle
155

How does provide/inject work in Vue 3?

Middle
154

What is Teleport in Vue 3 and how is it used?

Middle
144

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

Middle
130

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

Middle
129

What is Composition API in Vue 3? How does it differ from Options API?

Middle
129

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

Middle
128

How does reactivity work in Vue 3? What is the difference from Vue 2 (Proxy vs Object.defineProperty)?

Middle
128

Will there be a closure problem when adding and removing the `scroll` handler? How does `removeEventListener` understand which handler to remove?

Middle
128

Will `useCallback` help here? Where exactly and for what purpose is it needed in this hook?

Middle
125

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

Middle
121

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

Middle
119
/2