What is the difference between a tuple and an array?
Frontend
/* What will be printed in the console */ console.log(1); Promise.resolve().then(() => console.log(2)); setTimeout(() => console.log(3)); Promise.resolve().then(() => console.log(4)); console.log(5); setTimeout(() => { Promise.resolve().then(() => console.log(6)); console.log(7); Promise.resolve().then(() => console.log(8)); }, 0); setTimeout(() => console.log(9));
What approaches to writing CSS do you know? Have you had experience with Tailwind?
/* Write the MyReadonly type - makes all fields read-only */ type User = { id: number name: string } type MyReadonly<T> = any const user: MyReadonly<User> = { id: 1, name: "John" } user.name = "Jane"
What is the purpose of the 'never' type?
Have you ever configured a linter considering TypeScript typing?
What is the difference between type and interface in TypeScript?
Why did you choose TanStack Query instead of RTK Query?
/* Write the type MyRequired — makes all optional fields mandatory */ type User = { id?: number name?: string } type MyRequired<T> = { } const user1: MyRequired<User> = { id: 1, name: "John" } const user2: MyRequired<User> = { id: 1 }
Have you used other State Managers besides Redux (MobX, Zustand, Effector)?
Was there a multiple choice feature in the select?
Have you ever had to configure ESLint and Prettier so that they do not conflict with each other?
/* What will be printed in the console */ async function f() { console.log(1); const promise = new Promise((resolve) => { console.log(2); setTimeout(() => { console.log(3); resolve("готово!"); console.log(4); }); }); console.log(5); const result = await promise; console.log(6); console.log(result); return "Result"; } f(); console.log(7);
What libraries did you use for state management?
What is Suspense used for in React?
What UI libraries have you worked with? What are the pros and cons of Ant Design and Material UI?
What is reconciliation in React?
What is batching in React?
Have you ever configured class sorting or duplicate removal in Tailwind?
What are the pros and cons of using native fetch versus a library like Axios?