Sobes.tech

What do you like most about frontend and in which area do you want to develop?

Middle
ТрансЭнергоСнаб (реакт)
38

In which HTTP methods is the body usually sent?

Middle+
Премиум IT Solution(ПСБ)
37

What is coupling and cohesion in development?

Middle
ТрансЭнергоСнаб (реакт)
37

How do arrow functions differ from regular functions in JavaScript?

Middle+
Премиум IT Solution(ПСБ)
37

Refactor the given React code to improve its structure and readability. The code includes a product list with search functionality, a cart count, and a sum of prices. Implement the fetchProducts function to simulate fetching products with a delay and possible error. Use React hooks such as useState, useEffect, and useCallback appropriately. Ensure the UI updates correctly when adding products to the cart and clearing the cart.

Senior
Альфа
37

const userStore = useUserStore() onMounted(() => { window.addEventListener('resize', handleResize) const interval = setInterval(() => { userStore.syncData() }, 5000) document.addEventListener('keydown', handleKeydown) function handleResize() { /* ... */ } function handleKeydown() { /* ... */ } })

Middle+
585GOLD
36

var a = { firstName: 'Bill', lastName: 'Ivanov', sayName: function() { console.log(this.firstName); }, sayLastName: () => { console.log(this.lastName); } }; a.sayName(); // var b = a.sayName; b(); // a.sayName.bind({ firstName: 'Boris' })(); // a.sayName(); // a.sayLastName(); // a.sayName.bind({ firstName: 'Boris' }).bind({ firstName: 'Tom' })(); // a.sayLastName.bind({ lastName: 'Petrov' })(); //

Senior
Альфа
35

Variable declaration list cannot be empty.

Senior
Альфа
35

Have you ever optimized interface rendering? What approaches did you use, such as virtual scroll, lazy loading, or defer?

Middle+
EvaTeam (ангуляр)
35

How to type the component props: using type or interface?

Middle+
Альфа-деньги
34

How to manage loading and execution of an external JavaScript file if you do not want to execute it immediately?

Middle+
Премиум IT Solution(ПСБ)
34

What happens if the <style> tag is placed not in <head>, but elsewhere in the document, for example in <body>?

Middle+
Премиум IT Solution(ПСБ)
33

What is minimally required for an HTML5 page to be considered valid?

Middle+
Премиум IT Solution(ПСБ)
33

Are you studying anywhere?

Junior
Kodera
33

What are CSS selectors?

Middle+
Премиум IT Solution(ПСБ)
33

What are generics in TypeScript?

Middle+
Data World
32

When does requestAnimationFrame execute in relation to the Event Loop and rendering?

Middle+
EvaTeam (ангуляр)
32

Can an Angular guard be implemented as a regular function instead of a class or service?

Middle+
Премиум IT Solution(ПСБ)
31

How to use AsyncPipe for subscribing and automatically unsubscribing from an Observable?

Middle+
Премиум IT Solution(ПСБ)
31

How justified is a complete rejection of NgModule in new Angular projects? In which cases might modules still be needed?

Middle+
EvaTeam (ангуляр)
31
/309