Skip to content

Latest commit

 

History

History
  • 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){}
  • 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.