Frontend
/** * 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) { }
How interesting would it generally be to work with FinTech within Web3, and is there any allergy to the Western market?
How to put your task in the microtask queue?
What is the difference between transition and animation properties in CSS?
Task: traverse a tree with output text with indentation (recursive traversal of a nested list)
Tell me more about the development process — in terms of team and coding.
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?
Tell us about yourself and your work experience.
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?
Implement server-side validation for the relevant fields.
How did you gather arguments for the dialogue with the tech director about the need for updates?
Evaluate the spatial complexity of your solution.
What can block the HTML parsing process?
Tell more about the keyboard navigation you implemented.
You mentioned Next.js — what other bundlers, build tools, dev tools have you used?
Why are you leaving your current company now?
Why is useRef needed? What are its applications?
What candidate are you considering for yourself?
[Name] asked: What personally might motivate you to resign and move to another company?
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.