TypeScript
The type system, generics, utility types, narrowing and compiler configuration.
0/180
- 1What is TypeScript?Junior
- 2Superset of JavaScriptJunior
- 3What does "static typing" mean?Junior
- 4What does "strict typing" mean?Junior
- 5The benefit of static and strict typingJunior
- 6Why does TypeScript improve code quality?Junior
- 7Why does TS code need to be compiled?Junior
- 8What is tsconfig.json?Junior
- 10Why doesn't TS always require writing types explicitly?Junior
- 11What does "structural typing" mean?Junior
- 12What is "type safety"?Junior
- 13Runtime errors and TSJunior
- 1Primitive typesJunior
- 2What is the string type?Junior
- 4What does the boolean type do?Junior
- 5What is the bigint type?Junior
- 6What does the symbol type do?Junior
- 7What is the never type?Junior
- 8What does the void type mean?Junior
- 9What does the unknown type mean?Junior
- 10What does the any type do?Junior
- 11When to use any?Junior
- 13What is enum in TypeScript?Junior
- 14What does the type keyword do?Junior
- 15What does the interface keyword do in TS?Junior
- 1What is a type in TypeScript?Junior
- 2What is an interface in TypeScript?Junior
- 3What is the difference between types and interfaces?Junior
- 4Why are interfaces more often used for objects?Junior
- 5How do you set optional fields in an interface or type?Middle
- 6Immutable fieldsJunior
- 7Dynamic object keysJunior
- 8What is an index signature in an interface?Junior
- 10Multiple inheritanceJunior
- 11How do you combine multiple types?Junior
- 12What are union types?Junior
- 13Type and interface inheritanceMiddle
- 14Same interface nameJunior
- 15Structural typing in interfacesJunior
- 16Intersection typesJunior
- 17Union of typesMiddle
- 18What does the implements keyword do?Junior
- 19Recursive typeJunior
- 2Typing function parametersJunior
- 3Return value typeJunior
- 4Automatic return type inferenceJunior
- 5void in a functionJunior
- 6Never in a functionJunior
- 7How do you set a default parameter?Junior
- 9Typing async functionsJunior
- 10How do you specify a function type in an interface or type?Middle
- 11How to create a function type using type?Junior
- 12What is function overloading (overload)?Junior
- 1What is a union type in TypeScript?Middle
- 2Combining more than two typesJunior
- 3Combining primitives and objectsJunior
- 4What is type narrowing?Junior
- 6The in operator when checking a unionMiddle
- 7What does "discriminated union" mean?Junior
- 8Exhaustive check through neverJunior
- 9What is an intersection type?Junior
- 10Intersection of primitivesJunior
- 11Readonly | optional intersectionsJunior
- 12What is distributive behavior of union types?Middle
- 13Set theoryMiddle
- 1What are Utility Types in TypeScript?Junior
- 2What does Partial<T> do?Junior
- 3What does Required<T> do?Junior
- 4What does Readonly<T> do?Junior
- 5What does Pick<T, K> do?Junior
- 6What does Omit<T, K> do?Junior
- 7What does Record<K, T> do?Junior
- 8What does Exclude<T, U> do?Junior
- 9What does Extract<T, U> do?Junior
- 10What does NonNullable<T> do?Junior
- 11What does ReturnType<T> do?Junior
- 13What does ConstructorParameters<T> do?Junior
- 14What does InstanceType<T> do?Junior
- 15Utility types for stringsMiddle
- 16Utility type pick in TypeScriptMiddle
- 17Utility type omit in TypeScriptMiddle
- 18Utility type awaited in TypeScriptMiddle
- 2How do generics differ from any?Junior
- 3How do you declare a function with a generic parameter?Junior
- 4Type inference with genericsJunior
- 5Multiple genericsJunior
- 6Constraints in genericsJunior
- 7How do you declare a generic type via type?Junior
- 8Default type in a genericJunior
- 10extends in generic parametersJunior
- 11The type does not satisfy the constraintJunior
- 12How to constrain a generic type to the keys of another type?Junior
- 13What does infer mean in TypeScript?Senior
- 14How do you extract a function's argument types with infer?Senior
- 15Conditional genericsJunior
- 17T extends neverMiddle
- 1What is a "discriminated union"?Junior
- 2What is a "conditional type"?Junior
- 3What is a "mapped type"?Junior
- 4What does "union narrowing" mean?Junior
- 5What does infer mean in TypeScript?Senior
- 6Why is type narrowing needed?Junior
- 7What is a "type guard"?Junior
- 8What are Discriminated Unions?Junior
- 10Index Access TypesJunior
- 11The keyof operatorJunior
- 12JS vs TS typeofJunior
- 1JS vs TS classesJunior
- 2Typing a constructorJunior
- 3Can you overload a constructor?Junior
- 4Access modifiersJunior
- 5What does the public access modifier do?Junior
- 6What does the private access modifier do?Junior
- 7What does the protected access modifier do?Junior
- 8Typing class methodsJunior
- 10What does the static keyword do?Junior
- 11How does a class implement an interface?Junior
- 12How does implements differ from extends in classes?Junior
- 13Can you make a generic class?Junior
- 1Why TypeScript is needed, pros and consJunior
- 2Literal types in TypeScriptJunior
- 3Differences between any and unknown in TypeScriptMiddle
- 4Differences between type and interface in TypeScriptMiddle
- 6Declaration merging in TypeScriptSenior
- 7Tuple types in TypeScriptMiddle
- 8Type assertions in TypeScriptMiddle
- 9Const assertions (as const) in TypeScriptMiddle
- 10The satisfies operator in TypeScriptMiddle
- 11Type inference with genericsJunior
- 12Access modifiers in TypeScript: public, private, protected, readonlyJunior
- 13Abstract classes in TypeScriptMiddle
- 14What are decorators in TypeScript?Middle
- 15Discriminant propertyMiddle
- 16Index access typesJunior
- 18Type assertion (as)Junior
- 19unknown vs anyJunior
- 20Template literal types in TypeScriptSenior
- 21strict: falseJunior
- 22What is execution context?Junior
- 23What problem do hooks solve in React?Junior
- 24What is the n + 1 problem in GraphQL?Senior