← All courses
SCRIPTING
TYPESCRIPT Interview Questions
4.2 (618)9,818 learners20 lessons39m
Curriculum
Topic
- 01 - What is TypeScript, and what advantages does it give over plain JavaScript2:00
- 02 - What is the difference between any, unknown, and never, and when would you use each1:54
- 03 - What is the difference between an interface and a type alias When would you pick one over the other2:07
- 04 - What are union () and intersection (&) types, and when would you use each2:00
- 05 - What is type inference, and when should you add explicit type annotations anyway2:00
- 06 - What is the difference between null, undefined, and what does strictNullChecks change1:53
- 07 - What are literal types, and how do they enable safer code1:51
- 08 - What is the difference between unknown and any in terms of type safety, and why is unknown preferred1:49
- 09 - What is the readonly modifier, and how does it differ from const1:54
- 10 - What are optional chaining (.) and nullish coalescing (), and how do they differ from1:58
- 11 - What is function overloading in TypeScript, and how do you declare overloads1:59
- 12 - What are optional, default, and rest parameters in a typed function2:03
- 13 - What is the difference between void and never as a function return type1:56
- 14 - How do you type a function that takes a callback What is the type of a function value1:57
- 15 - What does the this parameter type do in a function signature1:51
- 16 - What is structural typing (duck typing), and how does it differ from nominal typing2:03
- 17 - What is an index signature, and when would you use RecordK, V instead1:55
- 18 - What is type narrowing, and how does control-flow analysis enable it2:01
- 19 - What are the built-in type guards (typeof, instanceof, in), and when do you use each2:19
- 20 - What is a user-defined type guard (a function returning arg is Type), and why is it useful1:55