-
How Do You Implement Inheritance in TypeScript?
- Using extends keyword, we can implement inheritance.
-
How Does TypeScript Support Optional Parameters in Function as in JavaScript Every Parameter is Optional for a Function? Using ?
- Example
function fun(arg1:number, arg2?:number){}
- Example
-
What is an Export and Default Export in typescript?
- Any variable, function, class or interface can be exported by using the export keyword.
- After using export keyword, you can access your variable, function, class or interface from outside of the module.
-
What is an Interface in TypeScript?
- An interface in TypeScript is similar to other object oriented programming languages interfaces.
- An interface is a way to define a contract on a function with respect to the arguments.
typescript
Directory actions
More options
Directory actions
More options
typescript
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
parent directory.. | ||||