Tell us about promises: why are they needed, how are they better than callbacks, states, static methods (all, allSettled, race, any).
Frontend
Reference types and primitives in JavaScript: how do they differ, list each.
How did you reduce the number of bugs by 43%? What else could be done for further reduction?
How do margins collapse?
Is OOP in JS a working scheme? What is the main problem of OOP in JS?
Tell me about prototypes and prototypal inheritance in JavaScript.
It is necessary to write a method to get the value by key from an object with unlimited nesting and the signature get(path: string, data: Record<string, unknown>): unknown const data = { user: { profile: { name: 'Name' } } } get('user.profile.name', data)
The vacancy was closed a few months ago — why has it reopened? Did the developer fail the probation period?
What will be the output of a promise task chain with .then and null?
Why didn't you write more detailed comments in pull requests? Do you usually write like that in requests to your colleagues?
What is the difference between display: none and visibility: hidden? How does visibility: hidden differ from opacity: 0?
Why did you use computed for filtering tariffs instead of regular variables or functions?
How do you return the context of a function? Explain call, apply, bind.
Task on var in a loop: why does it output 5 fives and how to fix it?
Tell me about the static methods Promise: all, allSettled, race, any. What happens with an error in Promise.all?
Create a Vue 3 component using the Composition API and TypeScript that accepts a prop called `info` of type string. Use a composable function `useInfo` that takes the `info` string and returns a computed property `formattedInfo` which formats the string by prefixing it with "Additional information: ". Display both the original `info` prop and the `formattedInfo` in the component template.
Have you ever interacted with a PM under tight deadlines? When something needs to be done very quickly, but technically it is not possible to do so quickly?
Can CSS variables replace SCSS variables? What's the difference?
How do scoped styles work under the hood in Vue?
Tell me how your team interaction took place? Who assigned tasks, decomposed, who interacted with the design?