Sobes.tech

/** * The function `asyncAuth(callback)` takes a callback, * which can be passed an error (as the first argument) and * data from the backend (as the second argument). * asyncAuth((error, data) => {}); * * You need to implement the `auth()` function, * which calls `asyncAuth()`, but returns a Promise. * * @returns {Promise} */ function auth() { return new Promise((resolve, reject) => { asyncAuth((error, data) => { if (error) { reject(error) } else { resolve(data) } }); }) } /** * The `tryAuth()` function uses `auth()` and, in case of an error, * makes N additional attempts. * If all attempts fail, it should return the last error. * * @returns {Promise} */ function tryAuth(n) { }

Middle+
Яндекс
25

How interesting would it generally be to work with FinTech within Web3, and is there any allergy to the Western market?

Middle+
EvercodeLab
25

How to put your task in the microtask queue?

Middle
ИРИ
25

What is the difference between transition and animation properties in CSS?

Middle
Лига Цифровой ЭкономикиЛига Цифровой Экономики
25

Task: traverse a tree with output text with indentation (recursive traversal of a nested list)

Middle
МПФИТ
25

Tell me more about the development process — in terms of team and coding.

Middle
ВШЭ
25

In the ProductList component, useMemo with an empty dependency array is used. How does this affect the display of new products? Also, in the AddProductForm component, the button attaches onClick to handleSubmit instead of using onFinish on the form — how to fix this correctly?

Middle+
Ifellow
25

Tell us about yourself and your work experience.

Middle
SIGNAL
25

There is a const object a with two fields, and it is added to the dependencies array in useEffect. We change the fields of this object without overriding the object itself. Will useEffect re-execute in this case?

Middle
WB банк
25

Implement server-side validation for the relevant fields.

Middle
Mayflower
25

How did you gather arguments for the dialogue with the tech director about the need for updates?

Middle
нейровэд
25

Evaluate the spatial complexity of your solution.

Middle
Пикварио технологии
25

What can block the HTML parsing process?

Middle
Mayflower
25

Tell more about the keyboard navigation you implemented.

Middle+
Ifellow
25

You mentioned Next.js — what other bundlers, build tools, dev tools have you used?

Middle
МВидеоМВидео
25

Why are you leaving your current company now?

Middle
ИРИ
25

Why is useRef needed? What are its applications?

Middle+
IT OneIT One
25

What candidate are you considering for yourself?

Middle
нейровэд
25

[Name] asked: What personally might motivate you to resign and move to another company?

Middle
Sidbrige
25

Code review task: you are given code written by a junior. Part of the code (up to line 18) cannot be changed, the rest needs review. Find everything that seems strange or illogical and suggest corrections.

Middle
Voximplant
25
/286