TypeScript interview questions and answers

5 TypeScript questions interviewers ask most often. Read the answer, then practise saying it in your own words.

What is the difference between type and interface?

Model answer coming soon. Sign up free to see answers for every question and practise them.

Explain generics with an example.

Model answer coming soon. Sign up free to see answers for every question and practise them.

What are union and intersection types?

Model answer coming soon. Sign up free to see answers for every question and practise them.

How do you narrow a type?

Model answer coming soon. Sign up free to see answers for every question and practise them.

What does the unknown type do that any does not?

Model answer coming soon. Sign up free to see answers for every question and practise them.

More interview questions

Get questions written for your own resume

Create your free account