```typescript var a = { firstName: 'Bill', lastName: 'Ivanov', sayName: function() { console.log(this.firstName); }, sayLastName: () => { console.log(this.lastName); } }; a.sayName(); // var b = a.sayName; b(); // a.sayName.bind({ firstName: 'Boris' })(); // a.sayName(); // a.sayLastName(); // a.sayName.bind({ firstName: 'Boris' }).bind({ firstName: 'Tom' })(); // a.sayLastName.bind({ lastName: 'Petrov' })(); // ``` The containing arrow function captures the global value of 'this'.
Frontend
What attracted you to your company? What would you like to find at your new job?
That makes sense—keeping the public contract closed avoids unintended API drift, and discriminated unions are a strong reason to prefer `type`. When you’re implementing that button to be pixel-perfect and responsive, how do you handle spacing and alignment so icon+label stays visually consistent across breakpoints and font-size changes?
How would you structure the information exchange between the backend and frontend in layers (architecturally)?
What middleware did you use in Redux? What is middleware?
What is important to control during deployment?
What HTTP response codes do you know?
Was it difficult to allocate time for two parallel projects by the same team?
How was your Redux store tree structured: how nested was it, and how were slices organized?
/** * Write a component that will get a user by {{userId}} and display basic data * Use fetchUser for the request */ export const User: FC<Props> = ({ userId }) => { // Write your solution here: const user = userId && fetchUser({ id: userId }); if (!user) return null; return ( <div className="stack column"> <div>UserId: </div> <div>UserName: </div> </div> ); };
What will the two console.log outputs in the example with objects a, b, and c, used as object keys?
function debounce(fn, delay) { let timer return function (...args) { clearTimeout(timer) timer = setTimeout(() => fn(args), delay) } }
At what levels can services be provided via providers in Angular: component, route, module, application, platform?
What was configured in CI/CD for automatic deployment and how did it ensure production stability?
How many teams were involved in the product, how many people were in your team, and how many developers worked on one micro frontend?
Why do React component re-renders occur when working with Redux and how does the component learn about state changes?
What happens if you place many client components with the 'use client' directive in the server root layout?
Have you worked with i18n?
Which state management stack would you suggest for this project — React Query, Redux Toolkit, RTK Query?
Have you worked on setting up a test environment or only writing tests?