Essentials of TypeScript Functions

In the previous article of this series you learned about TypeScript variables and their data types. A common JavaScript construct is function. And TypeScript has some interesting features to offer when it comes to creating functions. Specifically this article covers function return types, optional parameters, default parameters, rest parameters, and callbacks.