Functions & Narrowing
TypeScript learning path
Master functions & narrowing through 10 carefully ordered interview questions. Each lesson includes a detailed explanation, practical example, common mistakes, and an interview-ready summary.
10 questions4 easy · 3 medium · 3 hard difficulty mix≈ 50 min total study time
Start this learning path Quick knowledge check
Test your Functions & Narrowing knowledge
Match five interview questions to their best answers. Your result stays on this device.
Table of contents
Work through the questions in order for a guided path, or jump directly to the concept you want to review.
01How do function overloads work?easy · junior level · 4 min read02What is a type predicate?hard · senior level · 4 min read03What is an assertion function?medium · mid level · 4 min read04What is a function return type?easy · junior level · 4 min read05What is the difference between `void` and `never`?hard · senior level · 5 min read06How do you type async functions?medium · mid level · 4 min read07How do you type callbacks?easy · junior level · 4 min read08How do rest parameters work in TypeScript?hard · senior level · 5 min read09How do you type `this` in a function?medium · mid level · 5 min read10What are template literal types?easy · junior level · 4 min read