Does the sort method mutate the original array or not? How to perform a non-mutating sort?
Frontend
Implement a storage class following the Observer pattern: the class stores data, allows subscribing and unsubscribing callback functions, and notifies all current subscribers of data changes, passing them the new data.
Why is a function in JavaScript considered an object, even though typeof returns "function" for it?
What other array methods do you know besides reduce (sorting, filtering, mutating methods, etc.)?
What happens in the browser after entering a URL in the address bar?
Why did you decide to consider other offers? What is wrong at your current job, or what prompted you to look for a new place?
What is the keyword satisfies in TypeScript? When and how is it used?
What does the underscore in a class property name, such as _data, mean, and does it make the property private?
If you hang an event listener on a parent div instead of the input itself, will the input's event handler still trigger (explain the event bubbling mechanism)?
How do you copy an object (non-primitive type) so that changes in the copy do not affect the original?
How was form validation implemented in your project?
How does enum work in TypeScript — what happens to keys and values if values are not specified or explicitly set?
Primitive types can call built-in methods, such as toString. Why is this possible?
Have you worked with the Zod library?
What will change in the results on all three lines if you turn the getName function into an arrow function?
Given an object with a getName method. What will be printed to the console on lines 12, 13, and 14 with different calls to the function?
Write types for a reduce function using generics (array type, callback with accumulator, current value, index, initial value).
How does the void type differ from never in TypeScript?
How long have you been working at the company? When was the last time new employees joined the team?
How to assign an object so that it is not a reference transfer (how to copy an object — shallowly and deeply)?