Creative

Interfaces in TypeScript

In this blog we can see the interfaces in TypeScript. Introduction : An interface is a syntactical contract to which an entity must adhere. In other words, an interface specifies the syntax that all entities must follow. Interfaces define the properties, methods, and events of the interfac...

Creative

What are Variables in TypeScript

In this blog we can see variables in TypeScript . Variables in TypeScript :  TypeScript variables can be referred to by a name called an identifier and are designated storage sites to hold a type of or dynamic kind of value. Syntax :  var <identifier> [: type-annotation] [= value] ...

Creative

What is Tuples in TypeScript

In this blog we can see what are the Tuples in TypeScript. Tuples in TypeScript :  Tuple is a new data type introduced by TypeScript. Tuples can have two different data types as values.Tuples can be used in the same way as any other variable. They can be used as function call arguments. S...

Creative

What is Inheritance in TypeScript

In this blog we will discuss about  Inheritance in TypeScript . Introduction Inheritance : Inheritance is the ability of one class to extend the functionality of another. The former is referred to as the Child Class or Sub Class, while the latter is referred to as the Parent Class or Supe...

Creative

How to use Getters and Setters in type script

In this blog we  will see  how to use getters and setters in TypeScript . Introduction : Getters and setters are two terms that can be used in TypeScript to obtain and modify the values of class members.By using the dot operator with the object of the specific class as a reference, users...

Creative

Anonymous Functions in TypeScript

In this blog we can see what is Anonymous functions in TypeScript . Anonymous Functions in TypeScript : TypeScript anonymous functions are functions that aren’t attached to an identifier, hence they lack a function name. For inline functions, anonymous functions are utilised. When a ...

Creative

What is Method Overriding in TypeScript

In this typescript tutorial we will discuss about  method overriding in typescript. Method Overriding: A method from the base (or parent) class may be replaced with a method with the same name and signature from the derived (child) class. This procedure is known as method overriding. A ch...

Creative

How to compile a type script file automatically

In this blog we can see how to compile a typescript file automatically in  typescript . Every time a TypeScript file is written, it must be compiled before the.js file can be produced. In order to compile the TypeScript file, we must execute the command in the console each time. The outpu...

Creative

Difference between Transpiler& Compiler in TypeScript

In this blog we will discuss about the differences between compiler & Transpiler in Type script . Compiler : A compiler is any programme that takes source code written in one language and converts it into output code written in another language, usually with a lower level of abstractio...

Creative

How to use readonly keyword in TypeScript

In this blog we can see using of readonly keyword in typescript . Readonly in type script : A feature of the language is the ability to instruct the Typescript compiler to make a property read-only. Yes, that means that once it has been built, you cannot change its worth. A read-only prope...