</> CodeWithZohaib

1. What is TypeScript?

2. What are the benefits of using TypeScript?

3. How do you declare variables in TypeScript?

4. What are interfaces in TypeScript?

5. What is a union type?

6. What are enums in TypeScript?

7. What is a tuple?

8. What is type inference?

9. How do you create a function in TypeScript?

10. What is the 'any' type?

11. What are generics in TypeScript?

12. How do you handle exceptions in TypeScript?

13. What is the difference between 'interface' and 'type'?

14. How do you create a class in TypeScript?

15. What are access modifiers in TypeScript?

47. How do you type a 'for' loop in TypeScript?

48. How does 'forEach' work with types in TypeScript?

49. How do you handle complex 'if-else' conditions in TypeScript?

50. What is 'map' in JavaScript and how does it differ from 'forEach'?

16. How do you implement interfaces in classes?

17. What is the 'never' type?

18. What are namespaces in TypeScript?

19. What is the purpose of type assertions?

20. How do you use type guards?

21. What is the 'readonly' modifier?

22. How do you create a union of interfaces?

23. What is a Mapped Type?

24. What is the 'keyof' operator?

25. What are conditional types?

26. What is a default parameter?

27. How do you declare an overloaded function?

28. What is the 'this' type?

29. How do you work with promises in TypeScript?

30. What is the purpose of 'async' and 'await'?

31. How do you define a namespace?

32. What is module augmentation?

33. How do you use the 'export' keyword?

34. What is the 'import' keyword?

35. What is a callable type?

36. How do you define a literal type?

37. What is the purpose of the 'override' modifier?

38. How do you use the 'infer' keyword?

39. What are decorators in TypeScript?

40. What is the 'void' type?

41. What is the 'instanceof' operator?

42. How do you create a private class member?