1. What is TypeScript and how does it enhance JavaScript?
  2. What are the three components of TypeScript?
  3. What is the difference between JavaScript and TypeScript?
  4. What is static typing in TypeScript?
  5. What are some user-defined data types in TypeScript?
  6. What are some built-in data types in TypeScript?
  7. What is an interface in TypeScript?
  8. What are access modifiers in TypeScript?
  9. What is the 'any' type in TypeScript and how is it used?
  10. When is the 'void' type used in TypeScript?
  11. What is the 'unknown' type in TypeScript and how does it differ from 'any'?
  12. How are generic types implemented in TypeScript?
  13. What is a module in TypeScript?
  14. How do arrays work in TypeScript?
  15. What are primitive types in TypeScript?
  16. Demonstrate the syntax for a function with type annotations in TypeScript.
  17. How are objects created in TypeScript?
  18. Does TypeScript support all object-oriented principles?
  19. How are class constants defined in TypeScript?
  20. Demonstrate function overloading in TypeScript with an example.
  21. What is a Tuple in TypeScript?
  22. What is an Enum in TypeScript?
  23. Explain the 'never' type in TypeScript and provide an example of its use.
  24. How does type assertion work in TypeScript?
  25. How to define a class in TypeScript?
  26. How do optional parameters work in TypeScript functions?
  27. How do default parameters work in TypeScript?
  28. How do union types work in TypeScript?
  29. How do interfaces with optional properties work in TypeScript?
  30. How does Type Inference work in TypeScript?
  31. Demonstrate the use of getters and setters in TypeScript with a functional component.
  32. Explain the concept of mixins in TypeScript with an example.
  33. Describe namespaces in TypeScript.
  34. How does inheritance work in TypeScript?
  35. Explain abstract classes in TypeScript.
  36. How do static properties and methods work in TypeScript, and how can we achieve similar functionality in functional components?
  37. Explain conditional types in TypeScript and their use cases.
  38. Describe the concept of mapped types in TypeScript with an example.
  39. How does the 'keyof' operator function in TypeScript?
  40. Describe TypeScript's handling of null and undefined with strict null checks.
  41. Describe discriminated unions in TypeScript and their use in modeling state.
Estimated time: 12 hours

Settings

THEME

NAVIGATION

Show arrows

JAVASCRIPT CONSOLE

Enable console
Keep it on all tabs

TIMER

Show in top bar
Infinite loop
Enable sound

QUESTIONS

Show answer background

APPLICATION DATA

This application is currently in maintenance mode.
Both questions and answers need to be refactored and restructured. There will be also new functionalities soon