Tell about the technology stack of the project. Have you worked with Telegram applications?
Frontend
Tell about hooks and the lifecycle of components in React.
How does useLayoutEffect differ from useEffect?
The chain immediately becomes rejected, the first .then is skipped. The first .catch catches the error Output: Catch 1: Error1 Returns 'Other value', turning the error into a successful result. The next .then receives 'Other value' Output: Then 2: Other value Then throws a new error: throw new Error('Second error') The chain again becomes rejected. The second .catch catches the second error Output: Catch 2: Second error Returns nothing → result is undefined. The last .then receives undefined Output: Then 3: undefined Greetings! ("Error!") is a promise that immediately rejects with the error "Error!" .then(1) — is skipped because the promise is in rejected state .catch(1) — catches the error, outputs "Catch 1: Error!" and returns "DATA RETURNED" .then(2) — receives "DATA RETURNED", outputs "Ticker ? DATA RETURNED" and throws a new error "Second error" .catch(2) — catches the second error, outputs "Catch 2: Second error" .then(3) — receives undefined (since the previous catch returned nothing), outputs "then 3: undefined"
Look at the code with console.log, setTimeout, and Promise and explain in what sequence what will be output.
Why did you choose Zustand instead of Redux?
How does Promise.any differ from Promise.race?
Why should you use try/catch instead of a .then/.catch chain?
What is the purpose of the key attribute in React lists?
What is used for memoization in React? What will happen if you use useMemo without the second parameter (dependency array)?
What tools and approaches do you use for styling (CSS modules, SCSS, CSS-in-JS, etc.)?
What error handling methods exist in JavaScript?
Is JavaScript single-threaded or multi-threaded? How does asynchronous work?
List the static methods of Promise and explain what a promise is.
Tell me about the Event Loop: what does it consist of and how does it work?
How is task setting and work process organization carried out?
Tell us about your experience with layout. What are the most complex elements you have had to create?
What is React, what is it created for, and what are its main concepts?
What other ways are there to trigger a component re-render besides changing state and props?