Saved Bookmarks
| 1. |
How to write a function in typescript? |
|
Answer» In Typescript, a function in TypeScript can be WRITTEN in two ways: Named FunctionThis type of function is written and called using its own name. Example:function display() { In this function, the code is written and stored through expressions or variables. The variable/expression name is used to CALL the stored data types. Example:let greeting = function() { |
|