Sobes.tech

Write types for a reduce function using generics (array type, callback with accumulator, current value, index, initial value).

Middle+
Ozon Tech
25

Tell me more about caching for fast page delivery. Provide an example on the second interface (question screen).

Middle+
OkkoOkko
25

Tell about a complex task you solved in an editor.

Middle
Revizto
25

There is a React component where clicking a button twice calls setState with the boolean value inverted. Will it work correctly? What is batching in React?

Middle
ТранснефтьТранснефть
25

Which object copying methods can copy functions from one object to another?

Middle+
Ifellow
25

What is the difference between defer and async attributes in the script tag?

Middle
ИРИ
25

If the task is unfamiliar and time is limited (for example, a week), how do you act?

Middle+
Ifellow
25

import React, { useState, useEffect, useRef, useContext, useReducer, useMemo } from 'react'; export default Effects = () => { const [count, setCount] = useState(0); useLayoutEffect(() => console.log("each render 1")); console.log("each render 2"); useEffect(() => console.log("each render 3")); return ( <> <button onClick={() => setCount((prevProps) => ++prevProps)}> Increment </button> </> ) }

Middle+
IT OneIT One
25

What are your expectations as an employee over the course of six months to a year of work?

Middle
Chulakov
25

How will the asymptotic complexity and memory consumption change in the task camelCase → snake_case if the result is collected by concatenating strings instead of an array of characters?

Middle+
Яндекс
25

Suppose we see that styles load slowly every time a user visits or refreshes the site. Making Critical CSS is difficult. What should be checked specifically for CSS and generally for any static content?

Middle
Mayflower
25

What cookie attributes do you remember?

Middle
WB банк
25

—SEPARATOR—

Middle+
Сбер Отдел 911
25

How did you work with AI when writing tests?

Middle+
Global treds
25

What are the disadvantages of WebSocket compared to other methods of client-server interaction?

Middle
NordClan
25

Explain the lifecycle of a React component. How to handle unmounting with useEffect?

Middle
Data World
25

Tell about your education. How did you come into the IT field?

Middle+
Dr. web
25

Tell us how well you understand what the company is, what product it offers, and what you will be doing?

Middle
Куаргет
25

// It is necessary to check the solution to the problem on two services by calling: // 1. checkResult(url1, solution) // 2. checkResult(url2, solution) // // checkResult: (url: string, solution: string | number) => Promise<boolean>; // // - If both requests return true - log success // - If at least one returns false - log fail // - If at least one does not respond - log error // - If at least one responds longer than 1 sec - log timeout

Middle
Яндекс МаркетЯндекс Маркет
25

import { useState, useRef, useEffect } from "react"; const useDebugRender = ({props}) => { const prevProp = useRef(props) useEffect(() => { }, []) } const ParentComponent = () => { const [random, setRandom] = useState(0); // Passes to child component as a Prop const [text, setText] = useState(""); // Passes to child component as a Prop const createRandom = () => setRandom(Math.floor(Math.random() * 100)); const onTextChange = (e) => setText(e.target.value); const [count, setCount] = useState(0); const incrementCount = () => setCount((prev) => prev + 1); // This function is passed as a prop to the child component return ( <> <Count: {count} /> <input type="text" onChange={onTextChange} /> <button onClick={createRandom}>Generate Random</button> <div> <ChildComponent random={random} text={text} incrementCount={incrementCount} /> </div> </> ); }; export default ParentComponent;

Middle+
IT OneIT One
25
/286