Frontend
What is important to you when choosing a new company? What are the key criteria?
Tell about your experience: what interesting projects have you done, what difficult problems have you solved?
Have you worked with anything besides the React stack?
How is the interaction with analysts and product managers built when setting tasks?
[name] asked: how do primitives differ from non-primitives? What is pass by reference and pass by value?
Is it possible to make finally execute again (with the number 10), without changing the code order, but by adding something inside the function?
What have you worked with the most? Which libraries or fields?
What is your experience with FSD (Feature-Sliced Design)? Do you think everyone needs it?
What bundler did you use in the project? You mentioned optimizing Webpack — was it the main bundler?
Does it make sense to use useMemo or useCallback for a function that returns JSX?
What is the difference between state and props?
How to bypass CORS without changing the original server and client?
Everything is done correctly: the backend set an HTTP-only cookie. But when refreshing the page, the cookie is lost. What could be the problem?
What are 'agents' in the described product?
What is a monorepo and are you familiar with this approach?
What level do you assign to yourself — middle, middle+, senior?
import { useState, useEffect } from 'react'; export default function App() { console.log('1'); useEffect(() => { console.log('2'); }, []); return <Child />; } function Child() { console.log('3'); useEffect(() => { console.log('4'); }, []); return <div>Bcraft</div>; }
What are you looking for in a new job, what do you pay attention to?
/ ** * You need to write an asynchronous function, * which will "sleep" for a specified number of milliseconds, * and then successfully complete * / function sleep(duration) { } // Example const startTime = Date.now(); console.log("start sleeping..."); sleep(2000).then(() => { console.log("Woke up after 2 seconds!"); console.log("Time passed: ", Date.now() - startTime); }); sleep(1000).then(() => { console.log("Woke up after 1 seconds!"); console.log("Time passed: ", Date.now() - startTime); });
Which task was not immediately easy, and required some effort?