Company overview
Сбермаркетинг
Latest vacancy: No data
- Vacancies
- 0
- Interviews
- 1
- Questions
- 23
- Tasks
- 0
Published in the selected period
Vacancies · 0
No vacancies were found for the selected period.
Published records
Interviews · 1
Grouped by direction
Questions and tasks · 23
Frontend
What is recursion? What are its rules? What is it used for?
Are parameters passed to the function by reference or by value?
What is a pure function? When is a function considered pure? What are side effects?
What has changed in React 18 during the Reconciliation process?
import "./styles.css"; import React from "react"; const getData = () => { return Array.from({ length: 50 }, (el, idx) => ({ value: Math.random(), label: `row ${idx + 1}`, })); }; export default function App() { const [data, setData] = React.useState(getData()); const handleUpdate = () => { setData((prev) => { return prev.map((row, i) => i === 0 ? { ...row, value: Math.random() } : row ); }); }; return ( <div> <h1>List App</h1> <Button onClick={handleUpdate}>update `row 1`</Button> {data.map((row) => { return <Row key={row.label} label={row.label} value={row.value} />; })} </div> ); }
What does useMemo do? When should it be used? Should the child component be wrapped in React.memo?
Given the following code snippet: ```typescript let info = { name: "Alex", skill: ["git", "react", "read"], }; let started = (info: any) => { let { name, skill } = info; (name = "Alex Pool"), skill.push("delete"); return { name, skill, online: true, }; }; ``` Explain what the function `started` does with the `info` object and describe the output of calling `started(info)`. Also, discuss if the original `info` object is mutated after calling `started(info)`.
Have you configured CI/CD pipelines, linters, prettier, pre-commit hooks — did you do it yourself or was it assigned from above?
What is the pseudo-array arguments? How does it differ from a regular array?
What is React Reconciliation? How does it work? What criteria does React use to decide whether to update or remount a component?
function recursiveFunction(N) { let counter = 0; if (N > 0) { counter = counter + 1; recursiveFunction(N - 1); } // console.log(counter) } recursiveFunction(3); // 3 3 3 ? Explain what the output of the function will be and why. Also, identify any issues with the current implementation of the recursive function and suggest how to fix it to correctly count and log the number of recursive calls.
Tell me about the event loop: what is it for, how does it work?