Category typescript

Function in TypeScript

Function is a block of codes (typically named) which perform a certain process. The motivation of defining a function is to improve reusability and also to encourage better code management. The most basic form of a function looks like the…