34 lessons
The Certificate
TypeScript supports the same definition of Functions as JavaScript.
Defining a function: The logical aspects of code that are responsible for the overall organization of your application are called functions.
Functions help us develop a readable, reusable, and easily maintainable application.
Functions in TypeScript can be named and anonymous.
Classes maintain the reusability aspect of components, additionally, they can be used to help create objects. ES6 supports classes in TypeScript.
When contrasting a Class and the Interface, you’d notice that the Class does not require implementations, unlike the Interface.
We’ll reference Functions in future lessons.