TypeScript for JavaScript Developers Part 12: Recursive Print using Interfaces

Опубликовано: 13 Март 2026
на канале: Jeremy Likness
381
1

This step extends the interfaces that were defined and uses them to create a generic method for recursive printing. The code is refactored so the same method is used to print single contacts or the entire contact list with recursion. Learn about optional properties and how to implement a read-only "getter."

Learn more about optional properties on interfaces: https://jlik.me/ffr
Learn more about accessors (getters and setters): https://jlik.me/ffs