Sobes.tech

Tell me about a fullstack application on Node.js/Express for automating branding of payment pages.

Middle
258

Task 6: Write a generic function that accepts an object with a mandatory 'name' property of type string and returns a string with the entity's name.

Middle
171

How have you worked with Git: what was the branching flow, how did you release, how did you do hotfixes?

Middle
168

What is the difference between any and unknown in TypeScript? Why does the linter not complain about any, but requires type narrowing for unknown?

Middle
168

/** * Task 4: Transform the given type `MaybeProps` to make all of its properties required. */ type MaybeProps = { a?: number; b?: string; };

Middle
148

Task 7: There are Alien and Human types, combined into a Person type. Write a function checkAlien that checks if the given Person is an alien. Fix the TypeScript error when accessing the isAlien property.

Middle
145

Task 2: Given multiple Todo interface declarations below, explain what happens when they are present in the same scope. Discuss how TypeScript treats them and fill in the `myTodo` object to satisfy the merged Todo interface requirements. ```typescript interface Todo { title: string; dueDate: Date; } interface Todo { description: string; completed: boolean; } interface Todo { priority: 'high' | 'medium' | 'low'; completed: string; } const myTodo: Todo = {}; ```

Middle
145

/** * Task 3: Analyze the function below and fix any errors. Explain the role of the `never` type in TypeScript. */ function throwError(): never { throw new Error('An error occurred'); } /** * Task 4: Transform the given type `MaybeProps` to make all of its properties required. */ type MaybeProps = { a?: number; b?: string; }; /** * Task 5: Create a generic type `Container` that contains a single property `value`. * The type of `value` should be constrained to either `string` or `number`. */ type Container<T> = { value: T; };

Middle
138

Have you had a negative experience in a team, such as intense disputes during code review? How would you act in such a situation?

Middle
138

Tell about using Astro: how you chose it, how content managers work with it.

Middle
131

/** * Task 1: Generics and Key Type Safety * Create a function `getProperty` that takes an object and a key. * Use generics to ensure the function is type-safe, and the key exists on the object. */ function getProperty<T extends Record<string, unknown>, K extends keyof T>(obj: T, key: K): T[K] { return obj[key]; } getProperty('str', 'toString') /** * Task 2: Given multiple Todo interface declarations below, explain what happens when they are present in the same scope. * Discuss how TypeScript treats them and fill in the `myTodo` object to satisfy the merged Todo interface requirements. */ interface Todo { title: string; dueDate: Date; } interface Todo { description: string; completed: boolean; }

Middle
129

Tell about cookie-based authentication and two-factor authentication in a user account.

Middle
119

Why did you decide to look for a job and why us?

Middle
114