TypeScript Intermediate
This test evaluates your intermediate knowledge of TypeScript, focusing on generics, advanced types, enums, namespaces, and module systems. To grow your TypeScript expertise, check out FreeCodeCamp TypeScript Guide, explore GeeksforGeeks TypeScript Tutorials, and watch this intermediate TypeScript Tutorial Video.
1
What is the difference between 'interface' and 'type' in TypeScript?
2
What is a generic in TypeScript?
3
How do you create a type that represents all possible values of an enum?
4
What is the 'never' type used for?
5
What is the purpose of 'as const' assertion?
6
How do you make all properties of a type optional?
7
What is a type guard in TypeScript?
8
How do you create a mapped type in TypeScript?
9
What is the difference between 'unknown' and 'any'?
10
How do you define function overloading in TypeScript?
11
What is a decorator in TypeScript?
12
How do you make a property read-only in a type?
13
What is the 'infer' keyword used for?
14
How do you create a type that excludes null and undefined?
15
What is a conditional type in TypeScript?