Sobes.tech

Does the sort method mutate the original array or not? How to perform a non-mutating sort?

Middle+
219

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.

Middle+
219

Why is a function in JavaScript considered an object, even though typeof returns "function" for it?

Middle+
216

What other array methods do you know besides reduce (sorting, filtering, mutating methods, etc.)?

Middle+
201

What happens in the browser after entering a URL in the address bar?

Middle+
187

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?

Middle+
182

What is the keyword satisfies in TypeScript? When and how is it used?

Middle+
181

What does the underscore in a class property name, such as _data, mean, and does it make the property private?

Middle+
180

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)?

Middle+
178

How do you copy an object (non-primitive type) so that changes in the copy do not affect the original?

Middle+
177

How was form validation implemented in your project?

Middle+
172

How does enum work in TypeScript — what happens to keys and values if values are not specified or explicitly set?

Middle+
167

Primitive types can call built-in methods, such as toString. Why is this possible?

Middle+
165

What will change in the results on all three lines if you turn the getName function into an arrow function?

Middle+
164

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?

Middle+
163

Have you worked with the Zod library?

Middle+
162

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

Middle+
160

How does the void type differ from never in TypeScript?

Middle+
160

How long have you been working at the company? When was the last time new employees joined the team?

Middle+
156

How to assign an object so that it is not a reference transfer (how to copy an object — shallowly and deeply)?

Middle+
154
/5