How large is the company you work for? How many people are in the IT department?
Frontend
What is CORS and what is it used for? How to allow requests from all sources?
Tell about primitives in JavaScript — what are they?
Under what conditions might the retry wrapper around fetch not be called at all in the current implementation, and how to prevent this?
What brought you to us? Why did you decide to interview at our company?
How do you personally assess your level (grade) — junior, middle, or senior?
What is a literal type in TypeScript? Provide an example.
What is the context (this) in JavaScript?
Tell about the structure of an HTTP request: what parts does it consist of?
What will change in all three cases if the function is arrow?
Name an example of an HTTP header in a request and explain its purpose.
What does passing objects by reference mean?
Given a function and two objects for type checking. In one case, TypeScript does not complain, in the other — it does. You need to type the function so that TypeScript's behavior matches the expected (using generics and keyof).
What utility types in TypeScript do you know? Provide examples (Record, Omit, ReturnType, etc.)
Arrow functions do not have their own 'this' — what does this mean and where does 'this' point to in this case?
What does the keyword satisfies mean in TypeScript and what is it used for?
How to ensure that the context is not lost in line 14 without changing the line itself (using bind)?
Implement a function to generate a CSS class string. It accepts any number of arguments of different types: strings and numbers are added to the result, arrays are recursively expanded, object keys with truthy values are included, and invalid values are ignored. The result is a string of classes separated by spaces.
What is synchronous and asynchronous loading of JavaScript and CSS? What does the loading method depend on?
What is important to you at a new workplace, and what could stop you from switching?