Create Your First Generic in TypeScript

Share this video with your friends

Send Tweet

Generics can be intimidating when you first come across them if you're unfamiliar with typed languages, but once you wrap your head around them, they're as simple as using a variable in JavaScript. This lesson walks through when and why to create a generic and how to use them in TypeScript.

Babs Craig
Babs Craig
~ 6 years ago

Awesome explanation John! I used to be confused when I saw the <T>. The way you explained it using IDontKnow and having the big reveal at the end was a nice surprise. The biggest aha so far in the course. Thanks! ๐Ÿ‘

Babs Craig
Babs Craig
~ 6 years ago

Awesome explanation John! I used to be confused when I saw the "<T>". The way you explained it using IDontKnow and having the big reveal at the end was a nice surprise. The biggest aha so far in the course. Thanks! ๐Ÿ‘

Babs Craig
Babs Craig
~ 6 years ago

"< T >"

Sterling Cobb
Sterling Cobb
~ 4 years ago

Ah yeah cool, yeah since the example was so small and simple it really helped.