Category: TypeScript

For and While Loops in TypeScript

like all other object-oriented programming languages in TypeScript also loop is used when need to executes a particular block for a numbers of time There is mainly 3 types of loop and they are while loop do-while loop and for loop While Loop A while loop can be called an infinite loop also it can […]

Read More

Decision Making or if and switch condition

Like all other programming languages in TypeScript also there is a conditional decision-making system and they are mainly if case and switch case The if Case in TypeSaript: if a condition is satisfied then only it lets execute the code which is inside of the if case else executes from the code after the if […]

Read More

TypeScript Operators

The operators are used for some operation like addition or substruction, TypeScript also have defined some operators like other programming languages, Here the addition or substruction symbol is the operator and the values to add or substruct are the operands. Let’s discuss the operators in details: Arithmetic Operator There are 7 types of the arithmetic […]

Read More
Variables in TypeScript

Variables in TypeScript

There ia a number of structure to define a variable in typescript and we are going to discuss upon that, var/let [variable name] : [type of the variable] = [value] In this case first have to write the keyword ver or let then the variable name and after that have to write the variable type […]

Read More
Variable Types in TypeScript

Variable Types in TypeScript

TypeScript supports various types of values like a number, string, etc and to store them there are a few numbers of variables also, In TypeScript here is 6 type of variable in typescript and they are as described below, Number: To declare a number type variable first use the keyword let or var then the […]

Read More
Typescript Basic Syntax

Typescript Basic Syntax

All the programming languages used their own syntax, So TypeScript also has defined its own syntax, TypeScript is composed of – Modules Functions Variables Statements and Expressions Comments To run the typescript page and convert to javascript, first locate the folder where your script file exists, then have to use tsc followed the filename, you […]

Read More
How to install and setup the environment for typescript?

How to install and setup the environment for typescript?

To learn any language first need to set up the environment and to set up the environment for typescript we have to install some software and packages. We are going to discuss that one by one. To work on Typescript first we need node.js so whatever operating system you are using you have to install […]

Read More
TypeScript Tutorial Overview

TypeScript Tutorial Overview

The javascript is built for client-side application handling and after introducing of node js we can handle the server-side also that is the database interaction also can be handled by javascript also, Now typescript is the superset of javascript, That is if you write code in javascript and save that as a .ts extension and […]

Read More