Create Your First Generic in TypeScript

InstructorJohn Lindquist

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
~ 5 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
~ 5 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
~ 5 years ago

"< T >"

Sterling Cobb
~ 3 years ago

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