Tell me about a fullstack application on Node.js/Express for automating branding of payment pages.
Frontend
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.
How have you worked with Git: what was the branching flow, how did you release, how did you do hotfixes?
What is the difference between any and unknown in TypeScript? Why does the linter not complain about any, but requires type narrowing for unknown?
/** * Task 4: Transform the given type `MaybeProps` to make all of its properties required. */ type MaybeProps = { a?: number; b?: string; };
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.
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 = {}; ```
/** * 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; };
Have you had a negative experience in a team, such as intense disputes during code review? How would you act in such a situation?
Tell about using Astro: how you chose it, how content managers work with it.
/** * 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; }
Tell about cookie-based authentication and two-factor authentication in a user account.
Why did you decide to look for a job and why us?