Challenge: Generics and Advanced Type Inferences
Test your understanding of generics and advanced type inferences in TypeScript by applying your knowledge to real problems.
We'll cover the following
Generics allow us to write reusable code that can work with different types, while advanced type inferences enable TypeScript to infer types in more complex scenarios.
Throughout this challenge, we will work on coding challenges that will help you master these concepts.
Specifying types explicitly in generics
There is an error in the code below. Can you figure out what’s wrong and fix the issue?
Get hands-on with 1400+ tech skills courses.