Functions & Generics

← TypeScript course — Chapter 3 of 5

Typing parameters and return values, optional and default parameters, typing destructured objects, and writing your first generics.

~~~

Your score — Functions & Generics

/ (%)

Next chapter: Narrowing & Type Guards →
~~~

Learn more

These quizzes are based on tutorials published on this site. Go deeper on Functions & Generics:

~~~

About this course

This is a chapter of the free TypeScript quiz course. Answer each question, get immediate feedback with an explanation, and move on. Your progress is saved in your browser — nothing leaves your machine.

All chapters of the TypeScript courseall quiz courses