0% found this document useful (0 votes)
8 views1 page

Typescript Interview Questions

Uploaded by

hkesh220
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views1 page

Typescript Interview Questions

Uploaded by

hkesh220
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

******************************************************* TYPESCRIPT

***********************************************************************************
****8

1. What is TypeScript?
2. What are the benefits of using TypeScript?
3. What are different data types in TypeScript?
4. Difference between any, unknown and never in TypeScript?
5. Difference between Array and Tuple?
6. What is type inference in TypeScript?
7. How do you create a union type?
8. How do you define an Interface in TypeScript?
9. What is the difference between Interface and Type Aliases?
10. How do you declare optional and readonly properties in interfaces?
11. Explain enum in TypeScript?
12. How to give the return type in function?
13. How to give optional, default and rest parameters in function?
14. What is public, private and protected in TypeScript classes?
15. How to implement overriding in classes of TypeScript?
16. What are Abstract classes?
17. What are Generics in TypeScript. Give examples in functions, classes and type
aliases.
18. What is type assertion? How is it different from type casting?
19. What are utility types? Give examples like Partial, Pick, Omit, Readonly.

You might also like