New: We've launched a brand new Coding Challenges section! Check out these interactive, real-world exercises to level up your skills.Explore Challenges
FrontendPrep
TypeScript Quiz

Advanced Types & Interfaces

Deep dive into interface vs type differences, declaration merging, keyof/typeof, indexed access types, and generic constraints.

Question 1 of 100%

What does the `keyof` operator do in TypeScript?

javascript
interface User { id: number; name: string; }
type UserKeys = keyof User;